29 #if FNET_CFG_HTTP || defined(__DOXYGEN__) 70 #if FNET_CFG_HTTP_VERSION_MAJOR 71 #define FNET_HTTP_VERSION_MAJOR (1u) 73 #define FNET_HTTP_VERSION_MAJOR (0u) 80 #if FNET_CFG_HTTP_VERSION_MAJOR 81 #define FNET_HTTP_VERSION_MINOR (0u) 83 #define FNET_HTTP_VERSION_MINOR (9u) 87 #if FNET_CFG_HTTP_VERSION_MAJOR || defined(__DOXYGEN__) 163 #if (FNET_CFG_HTTP_TLS && FNET_CFG_TLS) || defined(__DOXYGEN__) 188 #if FNET_CFG_HTTP_SSI || defined(__DOXYGEN__) 191 #if FNET_CFG_HTTP_CGI || defined(__DOXYGEN__) 194 #if (FNET_CFG_HTTP_AUTHENTICATION_BASIC && FNET_CFG_HTTP_VERSION_MAJOR) || defined(__DOXYGEN__) 197 #if (FNET_CFG_HTTP_POST && FNET_CFG_HTTP_VERSION_MAJOR) || defined(__DOXYGEN__) 200 #if (FNET_CFG_HTTP_TLS && FNET_CFG_TLS) || defined(__DOXYGEN__) 217 #include "fnet_http_ssi.h" 218 #include "fnet_http_cgi.h" 219 #include "fnet_http_auth.h" 220 #include "fnet_http_post.h" 222 #if defined(__cplusplus) 309 #if FNET_CFG_HTTP_VERSION_MAJOR || defined(__DOXYGEN__) 349 #if defined(__cplusplus) fnet_char_t * root_path
Server root-directory path (null-terminated string).
Bad Gateway. The server, while acting as a gateway or proxy, received an invalid response from the u...
const fnet_uint8_t * private_key_buffer
Buffer holding the private key in PEM or DER format.
Internal Server Error. The server encountered an unexpected condition which prevented it from fulfil...
const struct fnet_http_post * post_table
Pointer to the optional POST callback function table.
Forbidden. The server understood the request, but is refusing to fulfill it.
CGI callback function table.
HTTP over TLS (HTTPS) input parameters for fnet_http_init().
Moved Temporarily. The requested resource resides temporarily under a different URL. It's not supported by the FNET HTTP Server.
fnet_size_t certificate_buffer_size
Size of the certificate buffer (including the terminating null byte for PEM data).
Not Modified. If the client has performed a conditional GET request and access is allowed...
No Content. The server has fulfilled the request but there is no new information to send back...
fnet_http_desc_t fnet_http_init(struct fnet_http_params *params)
Initializes the HTTP Server service.
void fnet_http_set_response_content_length(fnet_http_session_t session, fnet_size_t content_length)
Sets content length in HTTP response header.
SSI callback function table.
NONE. Status code is not defined.
void fnet_http_set_response_status_code(fnet_http_session_t session, fnet_http_status_code_t status_code)
Sets status code in HTTP response status-line.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Not Found. The server has not found anything matching the Request-URI.
void fnet_http_release(fnet_http_desc_t desc)
Releases the HTTP Server service.
POST-method callback function table.
Input parameters for fnet_http_init().
fnet_int32_t fnet_http_session_t
HTTP session handle.
const fnet_uint8_t * certificate_buffer
Buffer holding the certificate data in PEM or DER format.
const struct fnet_http_cgi * cgi_table
Pointer to the optional CGI callback function table.
struct fnet_sockaddr address
Server socket address. If server IP address and Scope ID are set to 0s, the server will listen to a...
void fnet_http_set_response_no_header(fnet_http_session_t session)
Disables sending of HTTP response status-code and header.
Moved Permanently. The requested resource has been assigned a new permanent URL and any future refer...
Created. The request has been fulfilled and resulted in a new resource being created.
const struct fnet_http_auth * auth_table
Pointer to the optional HTTP Access Authentification table.
fnet_bool_t fnet_http_is_enabled(fnet_http_desc_t desc)
Detects if the HTTP Server service is enabled or disabled.
const struct fnet_http_ssi * ssi_table
Pointer to the optional SSI callback function table.
Service Unavailable. The server is currently unable to handle the request due to a temporary overloa...
fnet_int32_t fnet_http_desc_t
HTTP server descriptor.
OK. The request has succeeded.
Bad Request. The request could not be understood by the server due to malformed syntax.
char fnet_char_t
Type representing the charecter.
Not Implemented. The server does not support the functionality required to fulfill the request...
fnet_char_t * index_path
Index file path (null-terminated string). It's relative to the root_path.
HTTP Authentication table.
struct fnet_http_tls_params * tls_params
Pointer to the optional HTTP over TLS (HTTPS) parameters.
void fnet_http_query_unencode(fnet_uint8_t *dest, fnet_uint8_t *src)
Converts escaped string to an original format.
Socket address structure.
fnet_http_status_code_t
HTTP/1.0 Status-Code definitions according to RFC1945.
fnet_size_t private_key_buffer_size
Size of the private key buffer (including the terminating null byte for PEM data).
Unauthorized. The request requires user authentication.
Accepted. The request has been accepted for processing, but the processing has not been completed...