Octane API Client
Loading...
Searching...
No Matches
Classes | Enumerations | Functions
octane::internal Namespace Reference

Classes

class  ApiBridge
 
class  Fetch
 HttpClientクラスを通じてHTTP通信を行う。 More...
 
class  FetchBase
 HttpClientクラスを通じてHTTP通信を行うインタフェース。 More...
 
struct  FetchResponse
 Fetchのレスポンスを表す構造体。 More...
 
class  HttpClient
 HTTP通信を行う。 More...
 
class  HttpClientBase
 HTTP通信を行うインタフェース。 More...
 
struct  HttpRequest
 HTTPのリクエストを表す構造体。 More...
 
struct  HttpResponse
 HTTPのレスポンスを表す構造体。 More...
 

Enumerations

enum struct  HttpMethod { Get , Post , Put , Delete }
 HTTPメソッドを表す列挙体。 More...
 
enum struct  HttpVersion { Http1_0 , Http1_1 , Http2 , Http3 }
 HTTPバージョンを表す。 More...
 

Functions

char convToHexMono (std::uint8_t number)
 
std::string convToHex (const std::vector< std::uint8_t > &data)
 バイナリシーケンスを16進数文字列に変換する。 More...
 
std::string generateHash (const std::vector< std::uint8_t > &src)
 ハッシュ値を生成する。 More...
 
bool operator== (const HttpRequest &a, const HttpRequest &b)
 
bool operator== (const HttpResponse &a, const HttpResponse &b)
 
std::ostream & operator<< (std::ostream &stream, const HttpRequest &request)
 
std::ostream & operator<< (std::ostream &stream, const HttpResponse &response)
 

Enumeration Type Documentation

◆ HttpMethod

enum struct octane::internal::HttpMethod
strong

HTTPメソッドを表す列挙体。

Enumerator
Get 

GETメソッドを表す。

Post 

POSTメソッドを表す。

Put 

PUTメソッドを表す。

Delete 

DELETEメソッドを表す。

◆ HttpVersion

enum struct octane::internal::HttpVersion
strong

HTTPバージョンを表す。

Enumerator
Http1_0 

HTTP/1.0を表す。

Http1_1 

HTTP/1.1を表す。

Http2 

HTTP/2を表す。

Http3 

HTTP/3を表す。

Function Documentation

◆ convToHex()

std::string octane::internal::convToHex ( const std::vector< std::uint8_t > &  data)

バイナリシーケンスを16進数文字列に変換する。

標準ライブラリにそんくらいの機能あるやろとか言ってはいけない。

Parameters
[in]data変換元のデータ
Returns
std::string 変換したデータ
Here is the call graph for this function:
Here is the caller graph for this function:

◆ convToHexMono()

char octane::internal::convToHexMono ( std::uint8_t  number)
Here is the caller graph for this function:

◆ generateHash()

std::string octane::internal::generateHash ( const std::vector< std::uint8_t > &  src)

ハッシュ値を生成する。

使用されるアルゴリズムはblack2b-256である。

Parameters
[in]srcハッシュを生成する値。
Returns
std::string 生成されたハッシュ値。
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<() [1/2]

std::ostream & octane::internal::operator<< ( std::ostream &  stream,
const HttpRequest request 
)

◆ operator<<() [2/2]

std::ostream & octane::internal::operator<< ( std::ostream &  stream,
const HttpResponse response 
)

◆ operator==() [1/2]

bool octane::internal::operator== ( const HttpRequest a,
const HttpRequest b 
)

◆ operator==() [2/2]

bool octane::internal::operator== ( const HttpResponse a,
const HttpResponse b 
)