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

N_H2_REQUEST

one complete request received on a stream; every pointer is owned by the server and valid only for the duration of the request callback

#include "n_http2_server.h"

Public Attributes

Name
uint32_t stream_id
the stream the request arrived on
const char * scheme
the :scheme pseudo-header, or NULL when absent
const char * path
the :path pseudo-header, or NULL when absent
size_t nheaders
number of header fields
const char * method
the :method pseudo-header, or NULL when absent
N_H2_HEADER * headers
the decoded header fields, pseudo-headers included
size_t body_len
the body length in bytes
const unsigned char * body
the request body, or NULL when there is none
const char * authority
the :authority pseudo-header, or NULL when absent

Public Attributes Documentation

variable stream_id

uint32_t stream_id;

the stream the request arrived on

variable scheme

const char * scheme;

the :scheme pseudo-header, or NULL when absent

variable path

const char * path;

the :path pseudo-header, or NULL when absent

variable nheaders

size_t nheaders;

number of header fields

variable method

const char * method;

the :method pseudo-header, or NULL when absent

variable headers

N_H2_HEADER * headers;

the decoded header fields, pseudo-headers included

variable body_len

size_t body_len;

the body length in bytes

variable body

const unsigned char * body;

the request body, or NULL when there is none

variable authority

const char * authority;

the :authority pseudo-header, or NULL when absent