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

N_H2_FRAME

a parsed HTTP/2 frame; payload aliases the input buffer

#include "n_http2.h"

Public Attributes

Name
int type
frame type (N_H2_*)
uint32_t stream_id
stream identifier (31-bit; the reserved bit is cleared)
const unsigned char * payload
pointer into the input buffer (may be NULL when length is 0)
uint32_t length
payload length (24-bit)
int flags
frame flags

Public Attributes Documentation

variable type

int type;

frame type (N_H2_*)

variable stream_id

uint32_t stream_id;

stream identifier (31-bit; the reserved bit is cleared)

variable payload

const unsigned char * payload;

pointer into the input buffer (may be NULL when length is 0)

variable length

uint32_t length;

payload length (24-bit)

variable flags

int flags;

frame flags