<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="next" href="Http_client.key.html"> <link rel="Up" href="Http_client.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of class attributes" rel=Appendix href="index_attributes.html"> <link title="Index of class methods" rel=Appendix href="index_methods.html"> <link title="Index of classes" rel=Appendix href="index_classes.html"> <link title="Index of class types" rel=Appendix href="index_class_types.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Uq_gtk" rel="Chapter" href="Uq_gtk.html"> <link title="Equeue" rel="Chapter" href="Equeue.html"> <link title="Unixqueue" rel="Chapter" href="Unixqueue.html"> <link title="Uq_engines" rel="Chapter" href="Uq_engines.html"> <link title="Uq_socks5" rel="Chapter" href="Uq_socks5.html"> <link title="Unixqueue_mt" rel="Chapter" href="Unixqueue_mt.html"> <link title="Equeue_intro" rel="Chapter" href="Equeue_intro.html"> <link title="Uq_ssl" rel="Chapter" href="Uq_ssl.html"> <link title="Uq_tcl" rel="Chapter" href="Uq_tcl.html"> <link title="Netcgi_common" rel="Chapter" href="Netcgi_common.html"> <link title="Netcgi" rel="Chapter" href="Netcgi.html"> <link title="Netcgi_ajp" rel="Chapter" href="Netcgi_ajp.html"> <link title="Netcgi_scgi" rel="Chapter" href="Netcgi_scgi.html"> <link title="Netcgi_cgi" rel="Chapter" href="Netcgi_cgi.html"> <link title="Netcgi_fcgi" rel="Chapter" href="Netcgi_fcgi.html"> <link title="Netcgi_dbi" rel="Chapter" href="Netcgi_dbi.html"> <link title="Netcgi1_compat" rel="Chapter" href="Netcgi1_compat.html"> <link title="Netcgi_test" rel="Chapter" href="Netcgi_test.html"> <link title="Netcgi_porting" rel="Chapter" href="Netcgi_porting.html"> <link title="Netcgi_plex" rel="Chapter" href="Netcgi_plex.html"> <link title="Http_client" rel="Chapter" href="Http_client.html"> <link title="Telnet_client" rel="Chapter" href="Telnet_client.html"> <link title="Ftp_data_endpoint" rel="Chapter" href="Ftp_data_endpoint.html"> <link title="Ftp_client" rel="Chapter" href="Ftp_client.html"> <link title="Nethttpd_types" rel="Chapter" href="Nethttpd_types.html"> <link title="Nethttpd_kernel" rel="Chapter" href="Nethttpd_kernel.html"> <link title="Nethttpd_reactor" rel="Chapter" href="Nethttpd_reactor.html"> <link title="Nethttpd_engine" rel="Chapter" href="Nethttpd_engine.html"> <link title="Nethttpd_services" rel="Chapter" href="Nethttpd_services.html"> <link title="Nethttpd_plex" rel="Chapter" href="Nethttpd_plex.html"> <link title="Nethttpd_intro" rel="Chapter" href="Nethttpd_intro.html"> <link title="Netplex_types" rel="Chapter" href="Netplex_types.html"> <link title="Netplex_mp" rel="Chapter" href="Netplex_mp.html"> <link title="Netplex_mt" rel="Chapter" href="Netplex_mt.html"> <link title="Netplex_log" rel="Chapter" href="Netplex_log.html"> <link title="Netplex_controller" rel="Chapter" href="Netplex_controller.html"> <link title="Netplex_container" rel="Chapter" href="Netplex_container.html"> <link title="Netplex_sockserv" rel="Chapter" href="Netplex_sockserv.html"> <link title="Netplex_workload" rel="Chapter" href="Netplex_workload.html"> <link title="Netplex_main" rel="Chapter" href="Netplex_main.html"> <link title="Netplex_config" rel="Chapter" href="Netplex_config.html"> <link title="Netplex_kit" rel="Chapter" href="Netplex_kit.html"> <link title="Rpc_netplex" rel="Chapter" href="Rpc_netplex.html"> <link title="Netplex_cenv" rel="Chapter" href="Netplex_cenv.html"> <link title="Netplex_intro" rel="Chapter" href="Netplex_intro.html"> <link title="Netshm" rel="Chapter" href="Netshm.html"> <link title="Netshm_data" rel="Chapter" href="Netshm_data.html"> <link title="Netshm_hashtbl" rel="Chapter" href="Netshm_hashtbl.html"> <link title="Netshm_array" rel="Chapter" href="Netshm_array.html"> <link title="Netshm_intro" rel="Chapter" href="Netshm_intro.html"> <link title="Netconversion" rel="Chapter" href="Netconversion.html"> <link title="Netchannels" rel="Chapter" href="Netchannels.html"> <link title="Netstream" rel="Chapter" href="Netstream.html"> <link title="Mimestring" rel="Chapter" href="Mimestring.html"> <link title="Netmime" rel="Chapter" href="Netmime.html"> <link title="Netsendmail" rel="Chapter" href="Netsendmail.html"> <link title="Neturl" rel="Chapter" href="Neturl.html"> <link title="Netaddress" rel="Chapter" href="Netaddress.html"> <link title="Netbuffer" rel="Chapter" href="Netbuffer.html"> <link title="Netdate" rel="Chapter" href="Netdate.html"> <link title="Netencoding" rel="Chapter" href="Netencoding.html"> <link title="Netulex" rel="Chapter" href="Netulex.html"> <link title="Netaccel" rel="Chapter" href="Netaccel.html"> <link title="Netaccel_link" rel="Chapter" href="Netaccel_link.html"> <link title="Nethtml" rel="Chapter" href="Nethtml.html"> <link title="Netstring_str" rel="Chapter" href="Netstring_str.html"> <link title="Netstring_pcre" rel="Chapter" href="Netstring_pcre.html"> <link title="Netstring_mt" rel="Chapter" href="Netstring_mt.html"> <link title="Netmappings" rel="Chapter" href="Netmappings.html"> <link title="Netaux" rel="Chapter" href="Netaux.html"> <link title="Nethttp" rel="Chapter" href="Nethttp.html"> <link title="Netchannels_tut" rel="Chapter" href="Netchannels_tut.html"> <link title="Netmime_tut" rel="Chapter" href="Netmime_tut.html"> <link title="Netsendmail_tut" rel="Chapter" href="Netsendmail_tut.html"> <link title="Netulex_tut" rel="Chapter" href="Netulex_tut.html"> <link title="Neturl_tut" rel="Chapter" href="Neturl_tut.html"> <link title="Netsys" rel="Chapter" href="Netsys.html"> <link title="Netpop" rel="Chapter" href="Netpop.html"> <link title="Rpc_auth_dh" rel="Chapter" href="Rpc_auth_dh.html"> <link title="Rpc_key_service" rel="Chapter" href="Rpc_key_service.html"> <link title="Rpc_time" rel="Chapter" href="Rpc_time.html"> <link title="Rpc_auth_local" rel="Chapter" href="Rpc_auth_local.html"> <link title="Rtypes" rel="Chapter" href="Rtypes.html"> <link title="Xdr" rel="Chapter" href="Xdr.html"> <link title="Rpc" rel="Chapter" href="Rpc.html"> <link title="Rpc_program" rel="Chapter" href="Rpc_program.html"> <link title="Rpc_portmapper_aux" rel="Chapter" href="Rpc_portmapper_aux.html"> <link title="Rpc_packer" rel="Chapter" href="Rpc_packer.html"> <link title="Rpc_transport" rel="Chapter" href="Rpc_transport.html"> <link title="Rpc_client" rel="Chapter" href="Rpc_client.html"> <link title="Rpc_simple_client" rel="Chapter" href="Rpc_simple_client.html"> <link title="Rpc_portmapper_clnt" rel="Chapter" href="Rpc_portmapper_clnt.html"> <link title="Rpc_portmapper" rel="Chapter" href="Rpc_portmapper.html"> <link title="Rpc_server" rel="Chapter" href="Rpc_server.html"> <link title="Rpc_auth_sys" rel="Chapter" href="Rpc_auth_sys.html"> <link title="Rpc_intro" rel="Chapter" href="Rpc_intro.html"> <link title="Rpc_mapping_ref" rel="Chapter" href="Rpc_mapping_ref.html"> <link title="Rpc_ssl" rel="Chapter" href="Rpc_ssl.html"> <link title="Rpc_xti_client" rel="Chapter" href="Rpc_xti_client.html"> <link title="Shell_sys" rel="Chapter" href="Shell_sys.html"> <link title="Shell" rel="Chapter" href="Shell.html"> <link title="Shell_uq" rel="Chapter" href="Shell_uq.html"> <link title="Shell_mt" rel="Chapter" href="Shell_mt.html"> <link title="Shell_intro" rel="Chapter" href="Shell_intro.html"> <link title="Netsmtp" rel="Chapter" href="Netsmtp.html"><link title="Call State" rel="Section" href="#2_CallState"> <link title="Accessing the request message (new style) " rel="Section" href="#2_Accessingtherequestmessagenewstyle"> <link title="Accessing the response message (new style) " rel="Section" href="#2_Accessingtheresponsemessagenewstyle"> <link title="Options" rel="Section" href="#2_Options"> <link title="Method characteristics" rel="Section" href="#2_Methodcharacteristics"> <link title="Repeating calls" rel="Section" href="#2_Repeatingcalls"> <link title="Old style access methods" rel="Section" href="#2_Oldstyleaccessmethods"> <link title="Private" rel="Section" href="#2_Private"> <title>Ocamlnet 2 Reference Manual : Http_client.http_call</title> </head> <body> <div class="navbar"> <a href="Http_client.html">Up</a> <a href="Http_client.key.html">Next</a> </div> <center><h1>Class type <a href="type_Http_client.http_call.html">Http_client.http_call</a></h1></center> <br> <pre><span class="keyword">class type</span> <a name="TYPEhttp_call"></a>http_call = <code class="code">object</code> <a href="Http_client.http_call.html">..</a> <code class="code">end</code></pre>The container for HTTP calls<br> <hr width="100%"> <code class="code">http_call</code> is the runtime container for HTTP method calls. It contains the request message, the response message, and the current transmission status. <p> In previous versions of netclient, this class type was called <code class="code">message</code>. This was quite inexact because this class embraces both messages that are part of a call. <p> <b>Incompatible changes</b>:<ul> <li><code class="code">using_proxy</code> has been removed. This simply isn't a property of an individual call.</li> <li><code class="code">get_req_uri</code> has been removed from the public interface for similar reasons.</li> <li>The request and response messages are now primarily stored as <code class="code">Netmime.mime_header</code> and <code class="code">Netmime.mime_body</code> objects. The old style access methods remain in the API for now. The advantage is that it is possible to use external files as body containers.</li> <li>There are two request headers, <code class="code">`Base</code> and <code class="code">`Effective</code>.</li> </ul> <a name="2_CallState"></a> <h2>Call State</h2><pre><span class="keyword">method</span> <a name="METHODis_served"></a>is_served : <code class="type">bool</code></pre><div class="info"> <code class="code">true</code> if request/response cycle(s) have been finished, i.e. the call was successful, or a final error state has been reached.<br> </div> <pre><span class="keyword">method</span> <a name="METHODstatus"></a>status : <code class="type"><a href="Http_client.html#TYPEstatus">status</a></code></pre><div class="info"> The condensed status<br> </div> <a name="2_Accessingtherequestmessagenewstyle"></a> <h2>Accessing the request message (new style) </h2><pre><span class="keyword">method</span> <a name="METHODrequest_method"></a>request_method : <code class="type">string</code></pre><div class="info"> The HTTP method as string<br> </div> <pre><span class="keyword">method</span> <a name="METHODrequest_uri"></a>request_uri : <code class="type">string</code></pre><div class="info"> The request URI as string. This is always an absolute URI in the form "http://server/path".<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_request_uri"></a>set_request_uri : <code class="type">string -> unit</code></pre><div class="info"> Sets the request URI<br> </div> <pre><span class="keyword">method</span> <a name="METHODrequest_header"></a>request_header : <code class="type"><a href="Http_client.html#TYPEheader_kind">header_kind</a> -> <a href="Netmime.mime_header.html">Netmime.mime_header</a></code></pre><div class="info"> The whole header of the request. Users of this class should only modify the <code class="code">`Base</code> header. After the call has been processed, the <code class="code">`Effective</code> header contains the version of the header that has actually been transmitted. <p> The user should set the following headers:<ul> <li><code class="code">Content-length</code>: Set this to the length of the request body if known. (The client falls back to HTTP 1.0 if not set!)</li> <li><code class="code">Content-type</code>: Set this to the media type of the request body</li> <li><code class="code">Expect</code>: Set this to "100-continue" to enable a handshake before the body is sent. Recommended for large bodies.</li> </ul> The following headers may be set, but there are reasonable defaults:<ul> <li><code class="code">Date</code></li> <li><code class="code">User-agent</code></li> </ul> The following headers must not be set:<ul> <li><code class="code">Connection</code></li> </ul> <br> </div> <pre><span class="keyword">method</span> <a name="METHODset_request_header"></a>set_request_header : <code class="type"><a href="Netmime.mime_header.html">Netmime.mime_header</a> -> unit</code></pre><div class="info"> Replaces the whole <code class="code">`Base</code> header object<br> </div> <pre><span class="keyword">method</span> <a name="METHODeffective_request_uri"></a>effective_request_uri : <code class="type">string</code></pre><div class="info"> The URI actually sent to the server in the request line of the protocol.<br> </div> <pre><span class="keyword">method</span> <a name="METHODrequest_body"></a>request_body : <code class="type"><a href="Netmime.mime_body.html">Netmime.mime_body</a></code></pre><div class="info"> The whole body of the request<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_request_body"></a>set_request_body : <code class="type"><a href="Netmime.mime_body.html">Netmime.mime_body</a> -> unit</code></pre><div class="info"> Replaces the whole body object<br> </div> <a name="2_Accessingtheresponsemessagenewstyle"></a> <h2>Accessing the response message (new style) </h2> <p> These method will fail if the call has not yet been served! If the call has been finished, but was not successful, the exception <code class="code">Http_protocol</code> is raised.<pre><span class="keyword">method</span> <a name="METHODresponse_status_code"></a>response_status_code : <code class="type">int</code></pre><div class="info"> The three-digit status code<br> </div> <pre><span class="keyword">method</span> <a name="METHODresponse_status_text"></a>response_status_text : <code class="type">string</code></pre><div class="info"> The text transmitted along with the code<br> </div> <pre><span class="keyword">method</span> <a name="METHODresponse_status"></a>response_status : <code class="type"><a href="Nethttp.html#TYPEhttp_status">Nethttp.http_status</a></code></pre><div class="info"> The decoded code. Unknown codes are mapped to the generic status values <code class="code">`Ok</code>, <code class="code">`Multiple_choices</code>, <code class="code">`Bad_request</code>, and <code class="code">`Internal_server_error</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODresponse_protocol"></a>response_protocol : <code class="type">string</code></pre><div class="info"> The HTTP version indicated in the response<br> </div> <pre><span class="keyword">method</span> <a name="METHODresponse_header"></a>response_header : <code class="type"><a href="Netmime.mime_header.html">Netmime.mime_header</a></code></pre><div class="info"> The whole header of the response. If the call has not succeeded, <code class="code">Http_protocol</code> will be raised.<br> </div> <pre><span class="keyword">method</span> <a name="METHODresponse_body"></a>response_body : <code class="type"><a href="Netmime.mime_body.html">Netmime.mime_body</a></code></pre><div class="info"> The whole body of the response. If the call has not succeeded, <code class="code">Http_protocol</code> will be raised. If the call has succeeded, but no body has been transmitted, the empty body is substituted.<br> </div> <a name="2_Options"></a> <h2>Options</h2><pre><span class="keyword">method</span> <a name="METHODresponse_body_storage"></a>response_body_storage : <code class="type"><a href="Http_client.html#TYPEresponse_body_storage">response_body_storage</a></code></pre><div class="info"> How to create the response body. Defaults to <code class="code">`Memory</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_response_body_storage"></a>set_response_body_storage : <code class="type"><a href="Http_client.html#TYPEresponse_body_storage">response_body_storage</a> -> unit</code></pre><div class="info"> Sets how to create the response body<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_reconnect_mode"></a>get_reconnect_mode : <code class="type"><a href="Http_client.http_call.html">http_call</a> <a href="Http_client.html#TYPEhow_to_reconnect">how_to_reconnect</a></code></pre><div class="info"> Get what to do if the server needs to be reconnected, i.e. if the request must be sent repeatedly. By default, this is <code class="code">Send_again_if_idem</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_reconnect_mode"></a>set_reconnect_mode : <code class="type"><a href="Http_client.http_call.html">http_call</a> <a href="Http_client.html#TYPEhow_to_reconnect">how_to_reconnect</a> -> unit</code></pre><div class="info"> Sets the reconnect mode<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_redirect_mode"></a>get_redirect_mode : <code class="type"><a href="Http_client.http_call.html">http_call</a> <a href="Http_client.html#TYPEhow_to_redirect">how_to_redirect</a></code></pre><div class="info"> By default, the redirect mode is <code class="code">Redirect_if_idem</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_redirect_mode"></a>set_redirect_mode : <code class="type"><a href="Http_client.http_call.html">http_call</a> <a href="Http_client.html#TYPEhow_to_redirect">how_to_redirect</a> -> unit</code></pre><div class="info"> Sets the redirect mode<br> </div> <pre><span class="keyword">method</span> <a name="METHODproxy_enabled"></a>proxy_enabled : <code class="type">bool</code></pre><div class="info"> Returns the proxy mode<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_proxy_enabled"></a>set_proxy_enabled : <code class="type">bool -> unit</code></pre><div class="info"> Sets the proxy mode<br> </div> <pre><span class="keyword">method</span> <a name="METHODno_proxy"></a>no_proxy : <code class="type">unit -> unit</code></pre><div class="info"> Same as <code class="code">set_proxy_enabled false</code><br> </div> <pre><span class="keyword">method</span> <a name="METHODis_proxy_allowed"></a>is_proxy_allowed : <code class="type">unit -> bool</code></pre><div class="info"> <b>Deprecated.</b> Same as <code class="code">proxy_enabled</code><br> </div> <a name="2_Methodcharacteristics"></a> <h2>Method characteristics</h2> <p> These properties describe the HTTP method<pre><span class="keyword">method</span> <a name="METHODempty_path_replacement"></a>empty_path_replacement : <code class="type">string</code></pre><div class="info"> The string to substitute in the request line for the empty path. This is usually "/", and for OPTIONS it is "*".<br> </div> <pre><span class="keyword">method</span> <a name="METHODis_idempotent"></a>is_idempotent : <code class="type">bool</code></pre><div class="info"> Whether the method is to be considered as idempotent ( = repeated invocations have the same result and no side effect). This is true for GET and HEAD.<br> </div> <pre><span class="keyword">method</span> <a name="METHODhas_req_body"></a>has_req_body : <code class="type">bool</code></pre><div class="info"> Whether the method allows to send a request body<br> </div> <pre><span class="keyword">method</span> <a name="METHODhas_resp_body"></a>has_resp_body : <code class="type">bool</code></pre><div class="info"> Whether the method allows to reply with a body. This is true except for HEAD.<br> </div> <a name="2_Repeatingcalls"></a> <h2>Repeating calls</h2><pre><span class="keyword">method</span> <a name="METHODsame_call"></a>same_call : <code class="type">unit -> <a href="Http_client.http_call.html">http_call</a></code></pre><div class="info"> This method returns a new object that will perform the same call as this object (this function is called "reload" in browsers). The new object is initialized as follows:<ul> <li>The state is set to <code class="code">`Unserved</code></li> <li>The request method remains the same (the class of the returned object remains the same)</li> <li>The request URI is the same string as the original URI</li> <li>The base request header is the same object</li> <li>The request body is the same object</li> <li>Options like reconnect, redirect mode, and proxy mode are copied.</li> </ul> <br> </div> <a name="2_Oldstyleaccessmethods"></a> <h2>Old style access methods</h2> <p> These method were introduced in previous versions of netclient, but are quite limited. Some questionable methods are now deprecated and will be removed in future versions of netclient.<pre><span class="keyword">method</span> <a name="METHODget_req_method"></a>get_req_method : <code class="type">unit -> string</code></pre><div class="info"> Get the name of the request method. Same as <code class="code">request_method</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_host"></a>get_host : <code class="type">unit -> string</code></pre><div class="info"> The host name of the content server, extracted from the URI<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_port"></a>get_port : <code class="type">unit -> int</code></pre><div class="info"> The port number of the content server, extracted from the URI<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_path"></a>get_path : <code class="type">unit -> string</code></pre><div class="info"> The path extracted from the URI<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_uri"></a>get_uri : <code class="type">unit -> string</code></pre><div class="info"> the full URI of this message: http://server:port/path. If the path is empty, it is omitted. - Same as <code class="code">request_uri</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_req_body"></a>get_req_body : <code class="type">unit -> string</code></pre><div class="info"> What has been sent as body in the (last) request. Same as <code class="code">request_body # value</code>.<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_req_header"></a>get_req_header : <code class="type">unit -> (string * string) list</code></pre><div class="info"> <b>Deprecated.</b> What has been sent as header in the (last) request. Returns (key, value) pairs, where the keys are all in lowercase. <p> In new code, the <code class="code">request_header</code> object should be accessed instead.<br> </div> <pre><span class="keyword">method</span> <a name="METHODassoc_req_header"></a>assoc_req_header : <code class="type">string -> string</code></pre><div class="info"> Query a specific header entry, or raise <code class="code">Not_found</code><br> </div> <pre><span class="keyword">method</span> <a name="METHODassoc_multi_req_header"></a>assoc_multi_req_header : <code class="type">string -> string list</code></pre><div class="info"> Return all header values for a given field name (header entries which allow several values separated by commas can also be transmitted by several header lines with the same name).<br> </div> <pre><span class="keyword">method</span> <a name="METHODset_req_header"></a>set_req_header : <code class="type">string -> string -> unit</code></pre><pre><span class="keyword">method</span> <a name="METHODget_resp_header"></a>get_resp_header : <code class="type">unit -> (string * string) list</code></pre><div class="info"> <b>Deprecated.</b> Get the header of the last response. The keys are in lowercase characters again.<br> </div> <pre><span class="keyword">method</span> <a name="METHODassoc_resp_header"></a>assoc_resp_header : <code class="type">string -> string</code></pre><div class="info"> Query a specific header entry of the response.<br> </div> <pre><span class="keyword">method</span> <a name="METHODassoc_multi_resp_header"></a>assoc_multi_resp_header : <code class="type">string -> string list</code></pre><div class="info"> Return all response header values for a given field name (header entries which allow several values separated by commas can also be transmitted by several header lines with the same name).<br> </div> <pre><span class="keyword">method</span> <a name="METHODget_resp_body"></a>get_resp_body : <code class="type">unit -> string</code></pre><div class="info"> <b>Deprecated.</b> Returns the body of the last response if the response status is OK (i.e. the code is in the range 200 to 299). <p> Otherwise, Http_error (code, body) is raised where 'code' is the response code and 'body' is the body of the (errorneous) response.<br> </div> <pre><span class="keyword">method</span> <a name="METHODdest_status"></a>dest_status : <code class="type">unit -> string * int * string</code></pre><div class="info"> Returns the status line of the last response (but status lines with code 100 are ignored). The returned triple is (http_string, code, text)<br> </div> <a name="2_Private"></a> <h2>Private</h2><pre><span class="keyword">method</span> <a name="METHODprivate_api"></a>private_api : <code class="type"><a href="Http_client.html#TYPEprivate_api">private_api</a></code></pre></body></html>