class Body

Defined at line 118 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

The body of an HTTP request.

Public Members

static const fidl_type_t * FidlType

Public Methods

void Body ()
void ~Body ()
void Body (Body && )
Body & operator= (Body && )
Body WithBuffer (::fuchsia::mem::Buffer && )
Body WithStream (::zx::socket && )
::std::unique_ptr<Body> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Body * value, size_t offset)
zx_status_t Clone (Body * result)
bool has_invalid_tag ()

Defined at line 145 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

bool is_buffer ()

Defined at line 149 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

::fuchsia::mem::Buffer & buffer ()

A buffer that will contain the complete request or response body.

Defined at line 152 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

const ::fuchsia::mem::Buffer & buffer ()

A buffer that will contain the complete request or response body.

Defined at line 158 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

bool is_stream ()

Defined at line 164 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

Body & set_buffer (::fuchsia::mem::Buffer value)
Body & set_stream (::zx::socket value)
::zx::socket & stream ()

A socket that will contain the streaming request or response body.

Defined at line 167 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

const ::zx::socket & stream ()

A socket that will contain the streaming request or response body.

Defined at line 173 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

::fuchsia::net::http::Body::Tag Which ()

Defined at line 179 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

fidl_xunion_tag_t Ordinal ()

You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need

access to the raw integral ordinal value.

Defined at line 185 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

Enumerations

enum Tag
Name Value
kBuffer 1
kStream 2
Invalid ::std::numeric_limits<::fidl_union_tag_t>::max()

Defined at line 131 of file fidling/gen/sdk/fidl/fuchsia.net.http/fuchsia.net.http/hlcpp/fuchsia/net/http/cpp/fidl.h

Friends

class Equality