Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Functions isHttp1Token

1
2
3
4
5
module juptune.http.v1;

bool isHttp1Token(
    const const char[] token
);

Documentation

Checks if a string is a valid HTTP 'token' as defined by RFC 9110.

Not the most useful function for user code, but there's no reason to not have it be public.

Notes

An empty string is not considered a valid token.

Params

Returns

trueif the token is valid, falseotherwise.