class Response
Defined at line 598 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
A response to an HTTP request.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
Response & set_error (::fuchsia::net::http::Error _value)
Response & set_body (::zx::socket _value)
Response & set_final_url (::std::string _value)
Response & set_status_code (uint32_t _value)
Response & set_status_line (::std::vector<uint8_t> _value)
Response & set_headers (::std::vector< ::fuchsia::net::http::Header> _value)
Response & set_redirect (::fuchsia::net::http::RedirectTarget _value)
void Response ()
void Response (Response && other)
void ~Response ()
Response & operator= (Response && other)
::std::unique_ptr<Response> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Response * _value, size_t _offset)
zx_status_t Clone (Response * _result)
const ::fuchsia::net::http::Error & error ()
If the response resulted in a network level error, this field will be
set.
Defined at line 606 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_error ()
Defined at line 610 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::fuchsia::net::http::Error * mutable_error ()
If the response resulted in a network level error, this field will be
set.
Defined at line 616 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_error ()
Defined at line 624 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::zx::socket & body ()
The response body.
Defined at line 633 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_body ()
Defined at line 637 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::zx::socket * mutable_body ()
The response body.
Defined at line 642 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_body ()
Defined at line 650 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::std::string & final_url ()
The final URL of the response, after redirects have been followed.
Defined at line 659 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_final_url ()
Defined at line 663 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::std::string * mutable_final_url ()
The final URL of the response, after redirects have been followed.
Defined at line 668 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_final_url ()
Defined at line 676 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const uint32_t & status_code ()
The HTTP status code.
Defined at line 685 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_status_code ()
Defined at line 689 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
uint32_t * mutable_status_code ()
The HTTP status code.
Defined at line 694 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_status_code ()
Defined at line 702 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::std::vector<uint8_t> & status_line ()
The HTTP status line.
Defined at line 711 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_status_line ()
Defined at line 715 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::std::vector<uint8_t> * mutable_status_line ()
The HTTP status line.
Defined at line 720 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_status_line ()
Defined at line 728 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::std::vector< ::fuchsia::net::http::Header> & headers ()
The HTTP response headers.
Defined at line 737 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_headers ()
Defined at line 741 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::std::vector< ::fuchsia::net::http::Header> * mutable_headers ()
The HTTP response headers.
Defined at line 746 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_headers ()
Defined at line 754 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::fuchsia::net::http::RedirectTarget & redirect ()
A description of the redirect the server requested, if any.
Defined at line 763 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_redirect ()
Defined at line 767 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::fuchsia::net::http::RedirectTarget * mutable_redirect ()
A description of the redirect the server requested, if any.
Defined at line 772 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_redirect ()
Defined at line 780 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h