[][src]Module taskserver_protocol::request

Structs

Request

Parsed Request.

RequestAuthHeader

The group containing the headers relevant for authentication

RequestHeaders

Group containing the most necessary headers. All fields here are required

Enums

RequestError

Request parsing Errors

RequestHeader

Type safe header struct. The relevant headers will be present as fields on the RequestHeaders struct

RequestProtocol

The Protocol Version of the taskserver protocol

RequestSubtype

The Subtype. Currently only makes sense in the context of the sync request

RequestType

The Request type. Contains all valid requests the client can send.

Functions

get_request_data

reads the entire request into the provided buffer

parse_request

splits the request string into headers (everything until the first empty line) and payload (everything after) Then assembles the Request struct while validating the existence of all required headers