nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches

◆ rest_client_request()

int rest_client_request ( struct rest_client_req_context * req_ctx,
struct rest_client_resp_context * resp_ctx )

#include <include/net/rest_client.h>

REST client request.

This function will block the calling thread until the request completes.

Parameters
[in]req_ctxRequest context containing input parameters to REST request
[out]resp_ctxResponse context for returning the response data.
Return values
0,ifthe REST response was received successfully. If response_len > 0, there is also body/content data in a response. http_status_code contains the actual HTTP status code. Otherwise, a (negative) error code is returned.