diff --git a/src/include/headers.h b/src/include/headers.h index d7d1905..64c5167 100644 --- a/src/include/headers.h +++ b/src/include/headers.h @@ -167,24 +167,152 @@ struct response_headers { }; struct request_headers { + /** + * Accept: ... + * + * Specify all mediatypes which are acceptable for the response + * + */ const char* accept; + + /** + * Accept-Charset: ... + * + * Sppeicgy the character sets that are acceptable for the response + */ const char* accept_charset; + + /** + * Accept-Encoding: ... + * + * restricts the content-codings that are acceptable in the response + */ const char* accept_encoding; + + /** + * Accept-Language: ... + * + * restricts the set of langauges that are preferred as a response to the request + */ const char* accept_language; + + /** + * Authorization: ... + * + * Used to auth itself with the server + */ const char* authorization; + + /** + * Expect: ... + * + * Used to indicate the server behaviour required by the client + * + * A server that doeesn't understand/unable to compy, must respond + * with the appropriate error status + * If the expectations cant be met, respond with 417, otherwise, some 4xx + */ const char* expect; + + /** + * From: mailbox + * + * If given, SHOULD contain an internet email address for the + * user that controls the requesting user agent + */ const char* from; + + /** + * Host: ... + * + * Contains the host and port of the resource being requested + */ const char* host; + + /** + * If-Match: ... + * + * used with a method to make it conditional + * uses entity tags.. + */ const char* if_match; + + /** + * If-Modified-Since: ... + * + * used with a method to make it conditional + * uses entity tags.. + */ const char* if_modified_since; + + /** + * If-None-Match: ... + * + * used with a method to make it conditional + * uses entity tags.. + */ const char* if_none_match; + + /** + * If-Range: ... + * + * used with a method to make it conditional + * uses entity tags.. + */ const char* if_range; + + /** + * If-Unmodified-Since: ... + * + * used with a method to make it conditional + * uses entity tags.. + */ const char* if_unmodified_since; + + /** + * Max-Forwards: ... + * + * Provided with TRACE and OPTIONS method to limit + * the number of proxies or gateways that can forward the request + */ const char* max_forwards; + + /** + * Proxy-Authorization: ... + * + * Allows the client to identify itself to a proxy which requires auth + */ const char* proxy_authorization; + + /** + * Range: ... + * + * Specify range... + */ const char* range; + + /** + * Referer: ... + * + * Specify the address from which the request-uri was obtained + */ const char* referer; + + /** + * TE: ... + * + * what transfer-encodings it is willing to accept in the response + * and whether or not it is willing to accept trailer fields + * in a chunked transfer-coding + */ const char* te; + + /** + * User-Agent: ... + * + * The useragent of the accessing client + * + */ const char* user_agent; };