5 Struct N_HTTP3_RESPONSE
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_HTTP3_RESPONSE

Module: HTTP3: minimal blocking HTTP/3 client over QUIC

Result of an HTTP/3 exchange. More...

#include "n_http3.h"

Public Attributes

Name
int status
HTTP status code, or 0 if none was received.
char * headers
Response header block as joined "name: value\r\n" lines (lowercased names), or NULL.
char * error
Failure reason (heap), or NULL on a completed exchange.
size_t body_len
Number of valid bytes in body.
unsigned char * body
Response body bytes (NOT NUL-terminated), or NULL.

Detailed Description

struct N_HTTP3_RESPONSE;

Result of an HTTP/3 exchange.

Free the inner buffers with n_http3_response_free.

Public Attributes Documentation

variable status

int status;

HTTP status code, or 0 if none was received.

variable headers

char * headers;

Response header block as joined "name: value\r\n" lines (lowercased names), or NULL.

variable error

char * error;

Failure reason (heap), or NULL on a completed exchange.

variable body_len

size_t body_len;

Number of valid bytes in body.

variable body

unsigned char * body;

Response body bytes (NOT NUL-terminated), or NULL.