HTTP Server#
This module contains the HTTP Server API constants.
Enumerations#
HTTP server response types.
HTTP server request types.
Macros#
Content type for CSS files.
Content type for CSV files.
Content type for HTML files.
Content type for JavaScript files.
Content type for plain text files.
Content type for XML files.
Content type for PDF files.
Content type for PDF files.
Content type for JSON files.
Content type for XML files.
Maximum number of query parameters in a URI.
Maximum length of the header buffer.
Enumeration Documentation#
sl_http_response_code_t#
sl_http_response_code_t
HTTP server response types.
Note
These are the standard HTTP/1.1 response status codes.
Enumerator | |
---|---|
SL_HTTP_RESPONSE_OK | Success response code. |
SL_HTTP_RESPONSE_BAD_REQUEST | Bad request response code. |
SL_HTTP_RESPONSE_UNAUTHORIZED | Unauthorized response code. |
SL_HTTP_RESPONSE_FORBIDDEN | Forbidden response code. |
SL_HTTP_RESPONSE_NOT_FOUND | Not found response code. |
SL_HTTP_RESPONSE_METHOD_NOT_ALLOWED | Method not allowed response code. |
SL_HTTP_RESPONSE_INTERNAL_SERVER_ERROR | Internal server error response code. |
SL_HTTP_RESPONSE_NOT_IMPLEMENTED | Not implemented response code. |
SL_HTTP_RESPONSE_SERVICE_UNAVAILABLE | Service unavailable response code. |
SL_HTTP_RESPONSE_HTTP_VERSION_NOT_SUPPORTED | HTTP version not supported response code. |
79
of file components/service/sl_http_server/inc/sl_http_server_types.h
sl_http_request_version_t#
sl_http_request_version_t
HTTP request versions.
Enumerator | |
---|---|
SL_HTTP_VERSION_1_0 | HTTP Version 1.0. |
SL_HTTP_VERSION_1_1 | HTTP Version 1.1. |
95
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
HTTP server request types.
Enumerator | |
---|---|
SL_HTTP_REQUEST_GET | GET request type. |
SL_HTTP_REQUEST_POST | POST request type. |
SL_HTTP_REQUEST_PUT | PUT request type. |
SL_HTTP_REQUEST_DELETE | DELETE request type. |
SL_HTTP_REQUEST_HEAD | HEAD request type. |
103
of file components/service/sl_http_server/inc/sl_http_server_types.h
Macro Definition Documentation#
SL_HTTP_CONTENT_TYPE_TEXT_CSS#
#define SL_HTTP_CONTENT_TYPE_TEXT_CSSValue:
"text/css"
Content type for CSS files.
36
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_TEXT_CSV#
#define SL_HTTP_CONTENT_TYPE_TEXT_CSVValue:
"text/csv"
Content type for CSV files.
39
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_TEXT_HTML#
#define SL_HTTP_CONTENT_TYPE_TEXT_HTMLValue:
"text/html"
Content type for HTML files.
42
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_TEXT_JAVASCRIPT#
#define SL_HTTP_CONTENT_TYPE_TEXT_JAVASCRIPTValue:
"text/javascript"
Content type for JavaScript files.
45
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_TEXT_PLAIN#
#define SL_HTTP_CONTENT_TYPE_TEXT_PLAINValue:
"text/plain"
Content type for plain text files.
48
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_TEXT_XML#
#define SL_HTTP_CONTENT_TYPE_TEXT_XMLValue:
"text/xml"
Content type for XML files.
51
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_APPLICATION_PDF#
#define SL_HTTP_CONTENT_TYPE_APPLICATION_PDFValue:
"application/pdf"
Content type for PDF files.
54
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_APPLICATION_PDF#
#define SL_HTTP_CONTENT_TYPE_APPLICATION_PDFValue:
"application/pdf"
Content type for PDF files.
63
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_APPLICATION_JSON#
#define SL_HTTP_CONTENT_TYPE_APPLICATION_JSONValue:
"application/json"
Content type for JSON files.
57
of file components/service/sl_http_server/inc/sl_http_server_types.h
SL_HTTP_CONTENT_TYPE_APPLICATION_XML#
#define SL_HTTP_CONTENT_TYPE_APPLICATION_XMLValue:
"application/xml"
Content type for XML files.
60
of file components/service/sl_http_server/inc/sl_http_server_types.h
MAX_QUERY_PARAMETERS#
#define MAX_QUERY_PARAMETERSValue:
4
Maximum number of query parameters in a URI.
66
of file components/service/sl_http_server/inc/sl_http_server_types.h
MAX_HEADER_BUFFER_LENGTH#
#define MAX_HEADER_BUFFER_LENGTHValue:
1024
Maximum length of the header buffer.
69
of file components/service/sl_http_server/inc/sl_http_server_types.h