![]() |
Thoth
A functional, expressive, asynchronous C++26 webdev library
|
Namespaces | |
| namespace | NHeaders |
Classes | |
| struct | Client |
| struct | ClientJanitor |
| The ClientJanitor stores all open Sockets in a pool to optimize consecutive calls. Only use it if you know what you are doing. More... | |
| struct | ConnectMethod |
| struct | DeleteMethod |
| struct | GenericError |
| struct | GetMethod |
| struct | Headers |
| This class stores the headers from HTTP. More... | |
| struct | HeadMethod |
| struct | JsonFindError |
| struct | JsonGetError |
| struct | JsonParseError |
| struct | JsonSearchError |
| struct | JsonWrongTypeError |
| struct | OptionsMethod |
| struct | PatchMethod |
| struct | PostMethod |
| struct | PutMethod |
| struct | QueryParams |
| struct | Request |
| struct | RequestError |
| struct | RequestHeaders |
| Represents the collection of HTTP headers associated with a request. Based on modern HTTP RFCs and inspired by .NET's HttpRequestHeaders. More... | |
| struct | Response |
| struct | ResponseHead |
| struct | ResponseHeaders |
| struct | Socket |
| structure that stores info about an open Socket, like the version, the type of socket and the last used time. More... | |
| struct | TraceMethod |
| struct | Url |
Concepts | |
| concept | BodyConcept |
| Class that transforms requests with a given method into their responses, monad friendly. | |
| concept | ResponseBodyFactoryConcept |
| concept | MethodConcept |
| The HTTP methods requirements following RFC9110. | |
| concept | SizedRequestBodyConcept |
| concept | ChunkedRequestBodyConcept |
| concept | RequestBodyConcept |
| concept | ResponseBodyConcept |
Typedefs | |
| using | GetRequest = Request<> |
| using | PostRequest = Request< PostMethod > |
| using | GetBinRequest = Request< GetMethod, vector< std::byte > > |
| using | PostBinRequest = Request< PostMethod, vector< std::byte > > |
| using | string_view = std::string_view |
| using | string = std::string |
| using | ConnectionErrorEnum = Hermes::ConnectionErrorEnum |
| using | GetResponse = Response<> |
| using | PostResponse = Response< PostMethod > |
| using | GetBinResponse = Response< GetMethod, vector< std::byte > > |
| using | PostBinResponse = Response< PostMethod, vector< std::byte > > |
| using | GetFileResponse = Response< GetMethod, Dsa::TextFileOutputRange > |
| using | PostFileResponse = Response< PostMethod, Dsa::TextFileOutputRange > |
| using | GetFileBinResponse = Response< GetMethod, vector< std::byte > > |
| using | PostFileBinResponse = Response< PostMethod, vector< std::byte > > |
| template<class T > | |
| using | WebResult = std::expected< T, StatusCodeEnum > |
| using | WebResultOper = WebResult< std::monostate > |
Functions | |
| std::string_view | VersionToString (VersionEnum version) |
| Exactly what you think it is. | |
| template<ResponseBodyConcept Body> | |
| auto | GetInserterIterator (Body &body) |
| constexpr StatusTypeEnum | GetStatusType (StatusCodeEnum code) |
| Check what type of code StatusCodeEnum is, the first digit of it's number. | |
| using Thoth::Http::ConnectionErrorEnum = typedef Hermes::ConnectionErrorEnum |
| using Thoth::Http::GetBinRequest = typedef Request<GetMethod, vector<std::byte> > |
| using Thoth::Http::GetBinResponse = typedef Response<GetMethod, vector<std::byte> > |
| using Thoth::Http::GetFileBinResponse = typedef Response<GetMethod, vector<std::byte> > |
| using Thoth::Http::GetFileResponse = typedef Response<GetMethod, Dsa::TextFileOutputRange> |
| using Thoth::Http::GetRequest = typedef Request<> |
| using Thoth::Http::GetResponse = typedef Response<> |
| using Thoth::Http::PostBinRequest = typedef Request<PostMethod, vector<std::byte> > |
| using Thoth::Http::PostBinResponse = typedef Response<PostMethod, vector<std::byte> > |
| using Thoth::Http::PostFileBinResponse = typedef Response<PostMethod, vector<std::byte> > |
| using Thoth::Http::PostFileResponse = typedef Response<PostMethod, Dsa::TextFileOutputRange> |
| using Thoth::Http::PostRequest = typedef Request<PostMethod> |
| using Thoth::Http::PostResponse = typedef Response<PostMethod> |
| using Thoth::Http::string = typedef std::string |
| using Thoth::Http::string_view = typedef std::string_view |
| using Thoth::Http::WebResult = typedef std::expected<T, StatusCodeEnum> |
| using Thoth::Http::WebResultOper = typedef WebResult<std::monostate> |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
| auto Thoth::Http::GetInserterIterator | ( | Body & | body | ) |
|
constexpr |
Check what type of code StatusCodeEnum is, the first digit of it's number.
1XX => INFORMATIONAL 2XX => SUCCESSFUL 3XX => REDIRECTION 4XX => CLIENT_ERROR 5XX => SERVER_ERROR
| std::string_view Thoth::Http::VersionToString | ( | VersionEnum | version | ) |
Exactly what you think it is.