class Loader

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

An HTTP and HTTPS loader.

The loader can service many HTTP or HTTPS requests concurrently. The loader tracks

all the outstanding requests and will cancel them all if the client closes

the loader interface.

Public Members

static const char[] Name_

Public Methods

void ~Loader ()
void Fetch (::fuchsia::net::http::Request request, FetchCallback callback)

Initiate the given HTTP or HTTPS request, follow redirects, and return the final

response.

The loader will follow redirects (up to an implementation-defined limit)

and return the final response as a reply to this message. To cancel the

request, close the loader interface.

void Start (::fuchsia::net::http::Request request, ::fidl::InterfaceHandle< ::fuchsia::net::http::LoaderClient> client)

Initiate the given HTTP or HTTPS request and return all intermediate responses to

the given client.

Unlike `Fetch`, `Start` does not automatically follow all redirects.

Instead, each individual response along the redirect chain is delivered

to the `LoaderClient`.