CCF
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
http Namespace Reference

Classes

class  ErrorReporter
 
class  HTTP2ClientSession
 
class  HTTP2ServerSession
 
struct  HTTP2SessionContext
 
class  HTTP2StreamResponder
 
class  HTTPClientSession
 
class  HttpRpcContext
 
class  HTTPServerSession
 
struct  JwtHeader
 
struct  JwtPayload
 
class  JwtVerifier
 
class  Message
 
class  Parser
 
class  Request
 
class  RequestHeaderTooLargeException
 
class  RequestParser
 
class  RequestPayloadTooLargeException
 
class  RequestProcessor
 
class  RequestTooLargeException
 
class  ResponderLookup
 
class  Response
 
class  ResponseParser
 
class  ResponseProcessor
 
struct  SimpleRequestProcessor
 
struct  SimpleResponseProcessor
 
class  UnencryptedHTTPClientSession
 
struct  URL
 

Typedefs

using HTTP2Session = ccf::EncryptedSession
 
using HTTPSession = ccf::EncryptedSession
 
using UnencryptedHTTPSession = ccf::UnencryptedSession
 

Enumerations

enum class  JwtCryptoAlgorithm { RS256 , ES256 }
 
enum  State { DONE , IN_MESSAGE }
 

Functions

 DECLARE_JSON_ENUM (JwtCryptoAlgorithm, {{JwtCryptoAlgorithm::RS256, "RS256"}, {JwtCryptoAlgorithm::ES256, "ES256"}})
 
 DECLARE_JSON_REQUIRED_FIELDS (JwtPayload, exp, iss)
 
 DECLARE_JSON_OPTIONAL_FIELDS (JwtPayload, nbf, tid)
 
auto split_url_path (const std::string_view &url)
 
bool status_success (ccf::http_status status)
 
URL parse_url_full (const std::string &url)
 
std::vector< uint8_t > error (ccf::ErrorDetails &&error)
 
std::vector< uint8_t > error (ccf::http_status status, const std::string &code, std::string &&msg)
 

Typedef Documentation

◆ HTTP2Session

◆ HTTPSession

◆ UnencryptedHTTPSession

Enumeration Type Documentation

◆ JwtCryptoAlgorithm

enum class http::JwtCryptoAlgorithm
strong
Enumerator
RS256 
ES256 

◆ State

Enumerator
DONE 
IN_MESSAGE 

Function Documentation

◆ DECLARE_JSON_ENUM()

http::DECLARE_JSON_ENUM ( JwtCryptoAlgorithm  ,
{{JwtCryptoAlgorithm::RS256, "RS256"}, {JwtCryptoAlgorithm::ES256, "ES256"}}   
)

◆ DECLARE_JSON_OPTIONAL_FIELDS()

http::DECLARE_JSON_OPTIONAL_FIELDS ( JwtPayload  ,
nbf  ,
tid   
)

◆ DECLARE_JSON_REQUIRED_FIELDS()

http::DECLARE_JSON_REQUIRED_FIELDS ( JwtPayload  ,
exp  ,
iss   
)

◆ error() [1/2]

std::vector< uint8_t > http::error ( ccf::ErrorDetails &&  error)
inline

◆ error() [2/2]

std::vector< uint8_t > http::error ( ccf::http_status  status,
const std::string &  code,
std::string &&  msg 
)
inline

◆ parse_url_full()

URL http::parse_url_full ( const std::string &  url)
inline

◆ split_url_path()

auto http::split_url_path ( const std::string_view &  url)
inline

◆ status_success()

bool http::status_success ( ccf::http_status  status)
inline