|
Symbian platform (C++)
SDK native APIs, runtime and tooling
|
Enumerations | |
| enum class | BodyFraming { kNone , kContentLength , kChunked , kUntilClose } |
| How a message body is delimited on the wire. More... | |
Functions | |
| std::optional< std::size_t > | FindHeaderBlockEnd (std::string_view data) |
| absl::StatusOr< Http1RequestHead > | ParseRequestHead (std::string_view head_block) |
| Parses a request head (start line + headers, no trailing CRLFCRLF needed). | |
| absl::StatusOr< Http1ResponseHead > | ParseResponseHead (std::string_view head_block) |
| Parses a response head (status line + headers). | |
| absl::StatusOr< BodyPlan > | PlanRequestBody (const Headers &headers) |
| absl::StatusOr< BodyPlan > | PlanResponseBody (std::string_view request_method, int status, const Headers &headers) |
| std::string | EncodeChunk (std::string_view data) |
| std::string | EncodeLastChunk (const Headers &trailers) |
| void | AppendHeaderBlock (const Headers &headers, std::string *out) |
Appends "name: value\r\n" for each header to out (names sent as given). | |
| std::string | SerializeRequest (std::string_view method, std::string_view target, const Headers &headers) |
| Serializes an HTTP/1.1 request head (start line + headers + CRLF). | |
| std::string | SerializeResponse (int status, const Headers &headers, std::string_view reason={}) |
| Serializes an HTTP/1.1 response head (status line + headers + CRLF). | |
| std::string_view | DefaultReasonPhrase (int status) |
|
strong |
| void symbian::http::internal::AppendHeaderBlock | ( | const Headers & | headers, |
| std::string * | out | ||
| ) |
Appends "name: value\r\n" for each header to out (names sent as given).
| std::string_view symbian::http::internal::DefaultReasonPhrase | ( | int | status | ) |
status (may be empty). | std::string symbian::http::internal::EncodeChunk | ( | std::string_view | data | ) |
data wrapped as a single chunked-transfer chunk. Empty input yields an empty string (callers must not emit a zero-size data chunk). | std::string symbian::http::internal::EncodeLastChunk | ( | const Headers & | trailers = {} | ) |
trailers as a trailer section when any are given. | std::optional< std::size_t > symbian::http::internal::FindHeaderBlockEnd | ( | std::string_view | data | ) |
data, or nullopt if the terminator has not yet arrived. Also accepts a bare LFLF terminator for lenient input. | absl::StatusOr< Http1RequestHead > symbian::http::internal::ParseRequestHead | ( | std::string_view | head_block | ) |
Parses a request head (start line + headers, no trailing CRLFCRLF needed).
| absl::StatusOr< Http1ResponseHead > symbian::http::internal::ParseResponseHead | ( | std::string_view | head_block | ) |
Parses a response head (status line + headers).
| absl::StatusOr< BodyPlan > symbian::http::internal::PlanRequestBody | ( | const Headers & | headers | ) |
| absl::StatusOr< BodyPlan > symbian::http::internal::PlanResponseBody | ( | std::string_view | request_method, |
| int | status, | ||
| const Headers & | headers | ||
| ) |
| std::string symbian::http::internal::SerializeRequest | ( | std::string_view | method, |
| std::string_view | target, | ||
| const Headers & | headers | ||
| ) |
Serializes an HTTP/1.1 request head (start line + headers + CRLF).
| std::string symbian::http::internal::SerializeResponse | ( | int | status, |
| const Headers & | headers, | ||
| std::string_view | reason | ||
| ) |
Serializes an HTTP/1.1 response head (status line + headers + CRLF).