class RedirectTarget
Defined at line 447 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
A description of the redirect the server requested.
The semantics of an HTTP redirect vary according to the status code use to
generate the redirect. This structure ensures that the loader and its client
agree on the interpretation of the redirect response from the server.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
RedirectTarget & set_method (::std::string _value)
RedirectTarget & set_url (::std::string _value)
RedirectTarget & set_referrer (::std::string _value)
void RedirectTarget ()
void RedirectTarget (RedirectTarget && other)
void ~RedirectTarget ()
RedirectTarget & operator= (RedirectTarget && other)
::std::unique_ptr<RedirectTarget> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, RedirectTarget * _value, size_t _offset)
zx_status_t Clone (RedirectTarget * _result)
const ::std::string & method ()
The HTTP method the server suggested for the redirect.
Defined at line 454 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_method ()
Defined at line 458 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::std::string * mutable_method ()
The HTTP method the server suggested for the redirect.
Defined at line 463 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_method ()
Defined at line 471 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::std::string & url ()
The URL the server suggested for the redirect.
Defined at line 480 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_url ()
Defined at line 484 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::std::string * mutable_url ()
The URL the server suggested for the redirect.
Defined at line 489 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_url ()
Defined at line 497 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
const ::std::string & referrer ()
The referrer the server suggested for the redirect.
Defined at line 506 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
bool has_referrer ()
Defined at line 510 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
::std::string * mutable_referrer ()
The referrer the server suggested for the redirect.
Defined at line 515 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h
void clear_referrer ()
Defined at line 523 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h