Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::api::connectivity::HttpClient Class Reference

Native HTTP client over the existing worker-owned TCP runtime. More...

#include <cpp/symbian/api/include/symbian/api/connectivity/http.h>

Static Public Member Functions

static absl::StatusOr< std::unique_ptr< http::Connection > > ConnectHost (std::string_view hostname, std::uint16_t port, http::RequestHead request, absl::Time deadline=absl::InfiniteFuture(), http::Protocol protocol=http::Protocol::kHttp11, http::Limits limits={}, std::optional< std::size_t > body_length=0)
 
static absl::StatusOr< std::unique_ptr< http::Connection > > ConnectIpv4 (std::array< std::uint8_t, 4 > address, std::uint16_t port, http::RequestHead request, http::Protocol protocol=http::Protocol::kHttp11, absl::Time deadline=absl::InfiniteFuture(), http::Limits limits={}, std::optional< std::size_t > body_length=0)
 

Detailed Description

Native HTTP client over the existing worker-owned TCP runtime.

An explicit address separates routing from the HTTP authority/TLS identity. For HTTPS, establish TlsStream::Connect then pass it to Connection::Client; the negotiated ALPN must match the selected HTTP protocol.

Member Function Documentation

◆ ConnectHost()

static absl::StatusOr< std::unique_ptr< http::Connection > > symbian::api::connectivity::HttpClient::ConnectHost ( std::string_view  hostname,
std::uint16_t  port,
http::RequestHead  request,
absl::Time  deadline = absl::InfiniteFuture(),
http::Protocol  protocol = http::Protocol::kHttp11,
http::Limits  limits = {},
std::optional< std::size_t >  body_length = 0 
)
inlinestatic

◆ ConnectIpv4()

static absl::StatusOr< std::unique_ptr< http::Connection > > symbian::api::connectivity::HttpClient::ConnectIpv4 ( std::array< std::uint8_t, 4 >  address,
std::uint16_t  port,
http::RequestHead  request,
http::Protocol  protocol = http::Protocol::kHttp11,
absl::Time  deadline = absl::InfiniteFuture(),
http::Limits  limits = {},
std::optional< std::size_t >  body_length = 0 
)
inlinestatic

The documentation for this class was generated from the following file: