Function wasix::http_request
source · pub unsafe fn http_request(
url: &str,
method: &str,
headers: &str,
gzip: Bool
) -> Result<HttpHandles, Errno>Expand description
Makes a HTTP request to a remote web resource and returns a socket handles that are used to send and receive data
Parameters
url- URL of the HTTP resource to connect tomethod- HTTP method to be invokedheaders- HTTP headers to attach to the request (headers seperated by lines)gzip- Should the request body be compressed
Return
The body of the response can be streamed from the returned file handle