jwt_get_headers_json

Return the value of a header as JSON encoded object string.

Returns the JSON encoded string value for a header (e.g. ""). If it does not exist, NULL will be returned.

@param jwt Pointer to a JWT object. @param header String containing the name of the header to return a value for. If this is NULL, all headers will be returned as a JSON encoded hash. @return Returns a string for the value, or NULL when not found. The returned string must be freed by the caller.

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

Meta