#include <userver/clients/http/response.hpp>
Class that will be returned for successful request.
Definition at line 25 of file response.hpp.
|
|
static void | RaiseForStatus (int code, const LocalStats &stats) |
| |
|
static void | RaiseForStatus (int code, const LocalStats &stats, std::string_view message) |
| |
◆ CookiesMap
| using clients::http::Response::CookiesMap = server::http::Cookie::CookiesMap |
◆ RaiseIncludeBody
◆ body() [1/2]
| std::string && clients::http::Response::body |
( |
| ) |
&& |
|
inline |
◆ body() [2/2]
| std::string clients::http::Response::body |
( |
| ) |
const & |
|
inline |
◆ body_view()
| std::string_view clients::http::Response::body_view |
( |
| ) |
const |
|
inline |
◆ cookies() [1/2]
| CookiesMap & clients::http::Response::cookies |
( |
| ) |
|
|
inline |
◆ cookies() [2/2]
| const CookiesMap & clients::http::Response::cookies |
( |
| ) |
const |
|
inline |
◆ headers() [1/2]
| Headers & clients::http::Response::headers |
( |
| ) |
|
|
inline |
◆ headers() [2/2]
| const Headers & clients::http::Response::headers |
( |
| ) |
const |
|
inline |
return reference to headers
Definition at line 42 of file response.hpp.
◆ IsError()
| bool clients::http::Response::IsError |
( |
| ) |
const |
|
inline |
◆ IsOk()
| bool clients::http::Response::IsOk |
( |
| ) |
const |
|
inline |
◆ raise_for_status()
| void clients::http::Response::raise_for_status |
( |
RaiseIncludeBody |
include_body = RaiseIncludeBody::kNo | ) |
const |
Raise an exception depending on the response status. The body of the response may be included in the exception depending on the.
- Parameters
-
- Exceptions
-
◆ SetStats()
| void clients::http::Response::SetStats |
( |
const LocalStats & |
stats | ) |
|
|
inline |
◆ SetStatusCode()
| void clients::http::Response::SetStatusCode |
( |
Status |
status_code | ) |
|
|
inline |
◆ sink_string()
| std::string & clients::http::Response::sink_string |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: