31#ifndef _HTTP_SERVER_MISC_H
32#define _HTTP_SERVER_MISC_H
43error_t httpReadRequestHeader(HttpConnection *connection);
44error_t httpParseRequestLine(HttpConnection *connection, char_t *requestLine);
46error_t httpReadHeaderField(HttpConnection *connection,
47 char_t *buffer,
size_t size, char_t *firstChar);
49void httpParseHeaderField(HttpConnection *connection,
50 const char_t *name, char_t *value);
52void httpParseConnectionField(HttpConnection *connection,
55void httpParseContentTypeField(HttpConnection *connection,
58void httpParseAcceptEncodingField(HttpConnection *connection,
61void httpParseCookieField(HttpConnection *connection, char_t *value);
63error_t httpReadChunkSize(HttpConnection *connection);
65void httpInitResponseHeader(HttpConnection *connection);
66error_t httpFormatResponseHeader(HttpConnection *connection, char_t *buffer);
68error_t httpSend(HttpConnection *connection,
69 const void *data,
size_t length, uint_t flags);
71error_t httpReceive(HttpConnection *connection,
72 void *data,
size_t size,
size_t *received, uint_t flags);
74void httpGetAbsolutePath(HttpConnection *connection,
75 const char_t *relative, char_t *absolute,
size_t maxLen);
77bool_t httpCompExtension(
const char_t *filename,
const char_t *extension);
79error_t httpDecodePercentEncodedString(
const char_t *input,
80 char_t *output,
size_t outputSize);
82void httpConvertArrayToHexString(
const uint8_t *input,
83 size_t inputLen, char_t *output);
error_t
Error codes.
Definition error.h:43
HTTP server (HyperText Transfer Protocol)