<ahref="#pub-methods">Public Member Functions</a>|
<ahref="#pub-static-methods">Static Public Member Functions</a>|
<ahref="#pro-methods">Protected Member Functions</a>|
<ahref="classcrashpad_1_1HTTPTransport-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::HTTPTransport Class Reference<spanclass="mlabels"><spanclass="mlabel">abstract</span></span></div></div>
</div><!--header-->
<divclass="contents">
<p><aclass="el"href="classcrashpad_1_1HTTPTransport.html"title="HTTPTransport executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. ">HTTPTransport</a> executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request.
<trclass="memdesc:a505d8f15710b1490f78d952cf84256f1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets URL to which the request will be made. <ahref="#a505d8f15710b1490f78d952cf84256f1">More...</a><br/></td></tr>
<trclass="memdesc:a5b2ee247e1ebed60cc883882ab642abe"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the HTTP method to execute. E.g., GET, POST, etc. The default method is <code>"POST"</code>. <ahref="#a5b2ee247e1ebed60cc883882ab642abe">More...</a><br/></td></tr>
<trclass="memdesc:af3a98227ab40c59b8b00c39127b3c618"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the stream object from which to generate the HTTP body. <ahref="#af3a98227ab40c59b8b00c39127b3c618">More...</a><br/></td></tr>
<trclass="memdesc:abd26eb2c22f87139745fc2de4eb7524a"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Sets the timeout for the HTTP request. The default is 15 seconds. <ahref="#abd26eb2c22f87139745fc2de4eb7524a">More...</a><br/></td></tr>
<trclass="memdesc:a08803c6c93750cbdc04c814a73a65efe"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Performs the HTTP request with the configured parameters and waits for the execution to complete. <ahref="#a08803c6c93750cbdc04c814a73a65efe">More...</a><br/></td></tr>
<trclass="memdesc:a369e362335bff481ba176ecdf7b036a1"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Instantiates a concrete <aclass="el"href="classcrashpad_1_1HTTPTransport.html"title="HTTPTransport executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. ">HTTPTransport</a> class for the current operating system. <ahref="#a369e362335bff481ba176ecdf7b036a1">More...</a><br/></td></tr>
<divclass="textblock"><p><aclass="el"href="classcrashpad_1_1HTTPTransport.html"title="HTTPTransport executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. ">HTTPTransport</a> executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. </p>
<p>This class cannot be instantiated directly. A concrete subclass must be instantiated instead, which provides an implementation to execute the request that is appropriate for the host operating system. </p>
</div><h2class="groupheader">Member Function Documentation</h2>
<p>Instantiates a concrete <aclass="el"href="classcrashpad_1_1HTTPTransport.html"title="HTTPTransport executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. ">HTTPTransport</a> class for the current operating system. </p>
<dlclass="section return"><dt>Returns</dt><dd>A new caller-owned <aclass="el"href="classcrashpad_1_1HTTPTransport.html"title="HTTPTransport executes a HTTP request using the specified URL, HTTP method, headers, and body. This class can only issue a synchronous HTTP request. ">HTTPTransport</a> object. </dd></dl>
<p>Performs the HTTP request with the configured parameters and waits for the execution to complete. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">response</td><td>On success, this will be set to the HTTP response body. This parameter is optional and may be set to <code>nullptr</code> if the response body is not required.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>Whether or not the request was successful, defined as returning a HTTP status 200 (OK) code. </dd></dl>
<p>Sets the stream object from which to generate the HTTP body. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">stream</td><td>A <aclass="el"href="classcrashpad_1_1HTTPBodyStream.html"title="An interface to a stream that can be used for an HTTP request body. ">HTTPBodyStream</a>, of which this class will take ownership. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">header</td><td>The HTTP header name. Any previous value set at this name will be overwritten. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">value</td><td>The value to set for the header. </td></tr>