HTTP Server#
This module contains the HTTP Server API constants.
Enumerations#
Enumeration of HTTP server response types.
Enumeration of HTTP request versions.
Enumeration of HTTP server request types.
Macros#
MIME type for CSS files.
MIME type for CSV files.
MIME type for HTML files.
MIME type for JavaScript files.
MIME type for plain text files.
MIME type for XML files.
MIME type for PDF files.
MIME type for JSON files.
MIME type for XML files.
Maximum number of query parameters in a URI.
Maximum number of query parameters in a URI.
Maximum length of the header buffer.
Maximum length of the header buffer.
Enumeration Documentation#
sl_http_response_code_t#
sl_http_response_code_t
Enumeration of HTTP server response types.
This enumeration defines the standard HTTP/1.1 response status codes used by the HTTP server to indicate the result of a client's request.
Note
These are the standard HTTP/1.1 response status codes.
Enumerator | |
---|---|
SL_HTTP_RESPONSE_OK | Success response code (200 OK) |
SL_HTTP_RESPONSE_BAD_REQUEST | Bad request response code (400 Bad Request) |
SL_HTTP_RESPONSE_UNAUTHORIZED | Unauthorized response code (401 Unauthorized) |
SL_HTTP_RESPONSE_FORBIDDEN | Forbidden response code (403 Forbidden) |
SL_HTTP_RESPONSE_NOT_FOUND | Not found response code (404 Not Found) |
SL_HTTP_RESPONSE_METHOD_NOT_ALLOWED | Method not allowed response code (405 Method Not Allowed) |
SL_HTTP_RESPONSE_INTERNAL_SERVER_ERROR | Internal server error response code (500 Internal Server Error) |
SL_HTTP_RESPONSE_NOT_IMPLEMENTED | Not implemented response code (501 Not Implemented) |
SL_HTTP_RESPONSE_SERVICE_UNAVAILABLE | Service unavailable response code (503 Service Unavailable) |
SL_HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED | HTTP version not supported response code (505 HTTP Version Not Supported) |
185
of file components/service/sl_http_server/inc/sl_http_server_types.h
sl_http_request_version_t#
sl_http_request_version_t
Enumeration of HTTP request versions.
This enumeration defines the supported versions of the HTTP protocol that can be used in HTTP requests.
Enumerator | |
---|---|
SL_HTTP_VERSION_1_0 | HTTP Version 1.0. |
SL_HTTP_VERSION_1_1 | HTTP Version 1.1. |
206
of file components/service/sl_http_server/inc/sl_http_server_types.h
sl_http_server_request_type_t#
sl_http_server_request_type_t
Enumeration of HTTP server request types.
This enumeration defines the types of HTTP requests that the server can handle. Each request type corresponds to a standard HTTP method.
Enumerator | |
---|---|
SL_HTTP_REQUEST_GET | GET request type, used to retrieve data from the server. |
SL_HTTP_REQUEST_POST | POST request type, used to submit data to the server. |
SL_HTTP_REQUEST_PUT | PUT request type, used to update or create a resource on the server. |
SL_HTTP_REQUEST_DELETE | DELETE request type, used to delete a resource from the server. |
SL_HTTP_REQUEST_HEAD | HEAD request type, used to retrieve the headers for a resource, without the body. |
218
of file components/service/sl_http_server/inc/sl_http_server_types.h