wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
moqraw_policy Struct Reference

The application's optional say over well-formed PATH/AUTHORITY values on raw QUIC. More...

#include <moqraw.h>

Data Fields

int(* accept_path )(void *ctx, wired_span path)
 1 to accept path, 0 to close with MOQRAW_CLOSE_INVALID_PATH; 0 hook = accept.
int(* accept_authority )(void *ctx, wired_span authority)
 1 to accept authority, 0 to close with MOQRAW_CLOSE_INVALID_AUTHORITY; 0 hook = accept.
void * ctx
 opaque context passed to both hooks

Detailed Description

The application's optional say over well-formed PATH/AUTHORITY values on raw QUIC.

Zero-initialized (or a 0 pointer to it) accepts every well-formed value – the default policy. A hook is only consulted for an option that is present and passed its syntax check.

Field Documentation

◆ accept_authority

int(* moqraw_policy::accept_authority) (void *ctx, wired_span authority)

1 to accept authority, 0 to close with MOQRAW_CLOSE_INVALID_AUTHORITY; 0 hook = accept.

authority is a view valid only for the call.

◆ accept_path

int(* moqraw_policy::accept_path) (void *ctx, wired_span path)

1 to accept path, 0 to close with MOQRAW_CLOSE_INVALID_PATH; 0 hook = accept.

path is a view valid only for the call.


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