[][src]Trait http_guest::RequestExt

pub trait RequestExt {
    type R;
    type Pending;
    fn send(self) -> Result<Self::R, SendError>;
fn send_async(self) -> Result<Self::Pending, SendError>; }

Associated Types

Required Methods

Synchronously send a request, and return a response.

This will consume the request and block until returning either a response, or a SendError. Most of the detailed error conditions relate to parsing of characters in headers, but future versions of this API will provide more detail on the types of failures that occur behind hostcalls.

Note: the version field on the request is currently ignored.

Asynchronously send a request.

This will consume the request and immediately return either a pending request, or a SendError. Most of the detailed error conditions relate to parsing of characters in headers, but future versions of this API will provide more detail on the types of failures that occur behind hostcalls.

Implementors

impl RequestExt for Request<Vec<u8>>
[src]