jwt_get_header_bool

Return the value of an boolean header.

Returns the int value for a header (e.g. ""). If it does not exist, 0 will be returned.

@param jwt Pointer to a JWT object. @param header String containing the name of the header to return a value for. @return Returns a boolean for the value. Sets errno to ENOENT when not found.

Note, this will only return headers with JSON boolean values. Use jwt_get_header_json() to get the JSON representation of more complex values (e.g. arrays) or use jwt_get_header() to get string values.

extern (C) nothrow @nogc
int
jwt_get_header_bool
(,
const(char)* header
)

Meta