Module http

Module http 

Source
Expand description

This module contains definitions for the HTTP types that the user interacts with.

It provides a RequestBuilder that allows constructing requests as well as the Response type used to receive responses using a Client. The SimpleClient uses it’s own response types.

Structs§

Header
An HTTP header.
OwnedHeader
An owned HTTP header. This is used in a response.
Query
An HTTP query.
RawRequest
ReqId
The ID assigned to a request.
Request
Represents an HTTP request. You can build a request either through this struct directly or through a RequestBuilder.
RequestBuilder
Used to build a request. See Request.
Response
An HTTP response. Contains a ResponseState.
ResponseHead
The Head of a response. This is not to be confused with an HTTP Header.
Status
A status code and message for a response.
Uri
An HTTP URI. The path may start with a / or it may not.

Enums§

Method
An HTTP method. The default method is GET.
Mode
If the connection should use tls or not.
ResponseState
The state of a response.