Go to the documentation of this file.
31 #ifndef _HTTP_COMMON_H
32 #define _HTTP_COMMON_H
40 #define HTTPS_PORT 443
43 #define HTTP_STATUS_CODE_1YZ(code) ((code) >= 100 && (code) < 200)
44 #define HTTP_STATUS_CODE_2YZ(code) ((code) >= 200 && (code) < 300)
45 #define HTTP_STATUS_CODE_3YZ(code) ((code) >= 300 && (code) < 400)
46 #define HTTP_STATUS_CODE_4YZ(code) ((code) >= 400 && (code) < 500)
47 #define HTTP_STATUS_CODE_5YZ(code) ((code) >= 500 && (code) < 600)
@ HTTP_REQ_STATE_SEND_TRAILER
@ HTTP_REQ_STATE_SEND_BODY
HttpFlags
Flags used by I/O functions.
HttpVersion
HTTP version numbers.
@ HTTP_REQ_STATE_FORMAT_HEADER
HttpCharset
HTTP character sets.
@ HTTP_REQ_STATE_PARSE_TRAILER
bool_t httpCompareParamName(const HttpParam *param, const char_t *name)
Compare parameter name with the supplied string.
@ HTTP_REQ_STATE_PARSE_BODY
@ HTTP_REQ_STATE_FORMAT_BODY
@ HTTP_REQ_STATE_RECEIVE_BODY
@ HTTP_REQ_STATE_SEND_CHUNK_DATA
@ HTTP_REQ_STATE_RECEIVE_CHUNK_DATA
@ HTTP_REQ_STATE_SEND_HEADER
error_t httpCopyParamValue(const HttpParam *param, char_t *value, size_t maxLen)
Copy the value of a parameter.
HttpAuthQop
Quality of protection (digest authentication)
@ HTTP_REQ_STATE_RECEIVE_HEADER
@ HTTP_REQ_STATE_RECEIVE_CHUNK_SIZE
@ HTTP_REQ_STATE_PARSE_HEADER
error_t httpCheckCharset(const char_t *s, size_t length, uint_t charset)
Check whether a string contains valid characters.
@ HTTP_REQ_STATE_RECEIVE_TRAILER
bool_t httpCompareParamValue(const HttpParam *param, const char_t *value)
Compare parameter name with the supplied string.
void httpEncodeHexString(const uint8_t *input, size_t inputLen, char_t *output)
Convert byte array to hex string.
error_t httpParseParam(const char_t **pos, HttpParam *param)
Parse a list of parameters.
@ HTTP_REQ_STATE_FORMAT_TRAILER
HttpRequestState
HTTP request states.
@ HTTP_REQ_STATE_RECEIVE_STATUS_LINE
HttpAuthMode
HTTP authentication schemes.
@ HTTP_REQ_STATE_SEND_CHUNK_SIZE
@ HTTP_REQ_STATE_COMPLETE