|
Zephyr Project API 4.4.99
A Scalable Open Source RTOS
|
HTTP service API. More...
#include "zephyr/net/http/server.h"#include <stdint.h>#include <stddef.h>#include <zephyr/sys/util_macro.h>#include <zephyr/sys/iterable_sections.h>#include <zephyr/net/tls_credentials.h>Go to the source code of this file.
Data Structures | |
| struct | http_resource_desc |
| HTTP resource description. More... | |
| struct | http_service_config |
| HTTP service configuration. More... | |
Macros | |
| #define | HTTP_RESOURCE_DEFINE(_name, _service, _resource, _detail) |
| Define a static HTTP resource. | |
| #define | HTTP_SERVICE_DEFINE_EMPTY(_name, _host, _port, _concurrent, _backlog, _detail, _res_fallback, _config) |
| Define an HTTP service without static resources. | |
| #define | HTTPS_SERVICE_DEFINE_EMPTY(_name, _host, _port, _concurrent, _backlog, _detail, _res_fallback, _config, _sec_tag_list, _sec_tag_list_size) |
| Define an HTTPS service without static resources. | |
| #define | HTTP_SERVICE_DEFINE(_name, _host, _port, _concurrent, _backlog, _detail, _res_fallback, _config) |
| Define an HTTP service with static resources. | |
| #define | HTTPS_SERVICE_DEFINE(_name, _host, _port, _concurrent, _backlog, _detail, _res_fallback, _config, _sec_tag_list, _sec_tag_list_size) |
| Define an HTTPS service with static resources. | |
| #define | HTTP_SERVICE_COUNT(_dst) |
| Count the number of HTTP services. | |
| #define | HTTP_SERVICE_RESOURCE_COUNT(_service) |
| Count HTTP service static resources. | |
| #define | HTTP_SERVICE_FOREACH(_it) |
| Iterate over all HTTP services. | |
| #define | HTTP_RESOURCE_FOREACH(_service, _it) |
Iterate over static HTTP resources associated with a given _service. | |
| #define | HTTP_SERVICE_FOREACH_RESOURCE(_service, _it) |
Iterate over all static resources associated with _service . | |
Typedefs | |
| typedef int(* | http_socket_create_fn) (const struct http_service_desc *svc, int af, int proto) |
| Custom socket creation function type. | |
Enumerations | |
| enum | http_version { HTTP_VERSION_ANY = 0 , HTTP_VERSION_1 = 0x01 , HTTP_VERSION_2 = 0x02 , HTTP_VERSION_3 = 0x04 } |
| Supported HTTP version for this service. More... | |
| enum | http_h3_alt_svc_policy { HTTP_H3_ALT_SVC_DEFAULT = 0 , HTTP_H3_ALT_SVC_DISABLE , HTTP_H3_ALT_SVC_ENABLE } |
| HTTP/3 Alt-Svc advertisement policy for this service. More... | |
HTTP service API.