Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
service.h File Reference

HTTP service API. More...

#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...
 

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)    __z_http_service_define(_name, _host, _port, _concurrent, _backlog, _detail, NULL, NULL)
 Define an HTTP service without static resources.
 
#define HTTPS_SERVICE_DEFINE_EMPTY(_name, _host, _port, _concurrent, _backlog, _detail, _sec_tag_list, _sec_tag_list_size)
 Define an HTTPS service without static resources.
 
#define HTTP_SERVICE_DEFINE(_name, _host, _port, _concurrent, _backlog, _detail)
 Define an HTTP service with static resources.
 
#define HTTPS_SERVICE_DEFINE(_name, _host, _port, _concurrent, _backlog, _detail, _sec_tag_list, _sec_tag_list_size)
 Define an HTTPS service with static resources.
 
#define HTTP_SERVICE_COUNT(_dst)   STRUCT_SECTION_COUNT(http_service_desc, _dst)
 Count the number of HTTP services.
 
#define HTTP_SERVICE_RESOURCE_COUNT(_service)   ((_service)->res_end - (_service)->res_begin)
 Count HTTP service static resources.
 
#define HTTP_SERVICE_FOREACH(_it)   STRUCT_SECTION_FOREACH(http_service_desc, _it)
 Iterate over all HTTP services.
 
#define HTTP_RESOURCE_FOREACH(_service, _it)    STRUCT_SECTION_FOREACH_ALTERNATE(http_resource_desc_##_service, http_resource_desc, _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 .
 

Detailed Description

HTTP service API.