Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
http_response_ctx Struct Reference

HTTP response context. More...

#include <server.h>

Data Fields

enum http_status status
 HTTP status code to include in response.
 
const struct http_headerheaders
 Array of HTTP headers.
 
size_t header_count
 Length of headers array.
 
const uint8_tbody
 Pointer to body data.
 
size_t body_len
 Length of body data.
 
bool final_chunk
 Flag set to true when the application has no more data to send.
 

Detailed Description

HTTP response context.

Field Documentation

◆ body

const uint8_t* http_response_ctx::body

Pointer to body data.

◆ body_len

size_t http_response_ctx::body_len

Length of body data.

◆ final_chunk

bool http_response_ctx::final_chunk

Flag set to true when the application has no more data to send.

◆ header_count

size_t http_response_ctx::header_count

Length of headers array.

◆ headers

const struct http_header* http_response_ctx::headers

Array of HTTP headers.

◆ status

enum http_status http_response_ctx::status

HTTP status code to include in response.


The documentation for this struct was generated from the following file: