http_server_misc.h
error_t httpFormatResponseHeader(HttpConnection *connection, char_t *buffer)
Format HTTP response header.
Definition: http_server_misc.c:778
HTTP server (HyperText Transfer Protocol)
bool_t httpCompExtension(const char_t *filename, const char_t *extension)
Compare filename extension.
Definition: http_server_misc.c:1100
error_t httpSend(HttpConnection *connection, const void *data, size_t length, uint_t flags)
Send data to the client.
Definition: http_server_misc.c:947
void httpParseConnectionField(HttpConnection *connection, char_t *value)
Parse Connection header field.
Definition: http_server_misc.c:499
error_t httpParseRequestLine(HttpConnection *connection, char_t *requestLine)
Parse Request-Line.
Definition: http_server_misc.c:200
void httpInitResponseHeader(HttpConnection *connection)
Initialize response header.
Definition: http_server_misc.c:745
void httpParseContentTypeField(HttpConnection *connection, char_t *value)
Parse Content-Type header field.
Definition: http_server_misc.c:545
void httpConvertArrayToHexString(const uint8_t *input, size_t inputLen, char_t *output)
Convert byte array to hex string.
Definition: http_server_misc.c:1193
error_t httpReadRequestHeader(HttpConnection *connection)
Read HTTP request header and parse its contents.
Definition: http_server_misc.c:83
void httpParseCookieField(HttpConnection *connection, char_t *value)
Parse Cookie header field.
Definition: http_server_misc.c:650
void httpParseHeaderField(HttpConnection *connection, const char_t *name, char_t *value)
Parse HTTP header field.
Definition: http_server_misc.c:419
void httpParseAcceptEncodingField(HttpConnection *connection, char_t *value)
Parse Accept-Encoding header field.
Definition: http_server_misc.c:614
error_t httpReadChunkSize(HttpConnection *connection)
Read chunk-size field from the input stream.
Definition: http_server_misc.c:664
error_t httpReadHeaderField(HttpConnection *connection, char_t *buffer, size_t size, char_t *firstChar)
Read multiple-line header field.
Definition: http_server_misc.c:317
error_t httpReceive(HttpConnection *connection, void *data, size_t size, size_t *received, uint_t flags)
Receive data from the client.
Definition: http_server_misc.c:995
void httpGetAbsolutePath(HttpConnection *connection, const char_t *relative, char_t *absolute, size_t maxLen)
Retrieve the full pathname to the specified resource.
Definition: http_server_misc.c:1079
error_t httpDecodePercentEncodedString(const char_t *input, char_t *output, size_t outputSize)
Decode a percent-encoded string.
Definition: http_server_misc.c:1134