C++ edjLibrary SDK
Classes | Typedefs | Enumerations
edjx::http Namespace Reference

Data types used by HTTP-related functions. More...

Classes

struct  CaseInsensitiveKeys
 A map<string, ...> comparator that achieves case-insensitive keys. More...
 
class  Uri
 Class that represents a URL. More...
 

Typedefs

typedef std::map< std::string, std::vector< std::string >, CaseInsensitiveKeysHttpHeaders
 A map of HttpHeaders where keys are case-insensitive header names. More...
 
typedef uint16_t HttpStatusCode
 HTTP status code (e.g., value 200 means OK, value 404 means Not Found) More...
 

Enumerations

enum class  HttpVersion {
  HTTP_09 , HTTP_10 , HTTP_11 , HTTP_2 ,
  HTTP_3
}
 Enum containing an HTTP version. More...
 
enum class  HttpMethod {
  NONE = 0 , GET = 1 , HEAD = 2 , POST = 3 ,
  PUT = 4 , DELETE = 5 , CONNECT = 6 , OPTIONS = 7 ,
  TRACE = 8 , PATCH = 9
}
 Enum containing a number of common HTTP methods. More...
 

Detailed Description

Data types used by HTTP-related functions.

Typedef Documentation

◆ HttpHeaders

typedef std::map<std::string, std::vector<std::string>, CaseInsensitiveKeys> edjx::http::HttpHeaders

A map of HttpHeaders where keys are case-insensitive header names.

◆ HttpStatusCode

typedef uint16_t edjx::http::HttpStatusCode

HTTP status code (e.g., value 200 means OK, value 404 means Not Found)

Enumeration Type Documentation

◆ HttpMethod

enum class edjx::http::HttpMethod
strong

Enum containing a number of common HTTP methods.

Enumerator
NONE 
GET 
HEAD 
POST 
PUT 
DELETE 
CONNECT 
OPTIONS 
TRACE 
PATCH 

◆ HttpVersion

enum class edjx::http::HttpVersion
strong

Enum containing an HTTP version.

Enumerator
HTTP_09 

HTTP version HTTP/0.9.

HTTP_10 

HTTP version HTTP/1.0.

HTTP_11 

HTTP version HTTP/1.1.

HTTP_2 

HTTP version HTTP/2.0.

HTTP_3 

HTTP version HTTP/3.0.