[][src]Module octane::request

Structs

Header

The header structure represents a parsed value of unit header that looks like key: value and holds the key and value both. You shouldn't use it directly as the parsing has been done for you and all the headers are available in the Headers struct which you get as a field in the req variable in closures

Headers

The Headers struct holds all the headers a request might have in raw form (if the feature is enabled) and in a HashMap with key and value of the type String

KeepAlive

The KeepAlive struct represents the value parsed in the KeepAlive header. It holds the timeout and max duration as a u64

MatchedRequest

The MatchedRequest is the struct which you see when you have the req variable in the closure It implements Deref to Request so you can use Requet methods/properties directly on it

Request

Represents a single request

RequestLine

The RequestLine struct represents the first line of the http request, which contains the http version, path and method of request

Enums

HttpVersion

Holds the http versions you can match the variants by doing a comparison with the version in the request_line

RequestMethod

Holds the type of request method, like GET POST etc. You don't need to use it directly

Functions

parse_without_body