nRF Connect SDK API 2.8.99
|
#include <zephyr/kernel.h>
#include <zephyr/net/http/client.h>
#include <zephyr/net/http/parser.h>
Go to the source code of this file.
Data Structures | |
struct | rest_client_req_context |
REST client request context. More... | |
struct | rest_client_resp_context |
REST client response context. More... | |
Macros | |
#define | REST_CLIENT_SEC_TAG_NO_SEC -1 |
TLS is not used. | |
#define | REST_CLIENT_TLS_DEFAULT_PEER_VERIFY -1 |
Use the default TLS peer verification; TLS_PEER_VERIFY_REQUIRED. | |
#define | REST_CLIENT_SCKT_CONNECT -1 |
REST client opens a socket connection. | |
Enumerations | |
enum | rest_client_http_status { REST_CLIENT_HTTP_STATUS_OK = 200 , REST_CLIENT_HTTP_STATUS_BAD_REQ = 400 , REST_CLIENT_HTTP_STATUS_UNAUTH = 401 , REST_CLIENT_HTTP_STATUS_FORBIDDEN = 403 , REST_CLIENT_HTTP_STATUS_NOT_FOUND = 404 } |
Common HTTP status codes. More... | |
Functions | |
int | rest_client_request (struct rest_client_req_context *req_ctx, struct rest_client_resp_context *resp_ctx) |
REST client request. | |
void | rest_client_request_defaults_set (struct rest_client_req_context *req_ctx) |
Sets the default values into a given request context. | |