A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
relay.h File Reference
#include <functional>
#include <memory>
#include <string>
#include <string_view>
#include <absl/time/time.h>
#include "a11/concurrency/future.h"
#include "a11/net/http2.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  a11
 
namespace  a11::net
 

Typedefs

using a11::net::HttpRelayObserver = std::function< absl::Status(std::string_view event, const HttpResponseHead &head, std::string_view data)>
 Observe response headers/body/completion without altering the exchange.
 

Functions

a11::Task a11::net::RelayHttp (std::string target, HttpRequest request, std::shared_ptr< Http2ResponseWriter > writer, Http2Options options={}, absl::Time deadline=absl::InfiniteFuture(), HttpRelayObserver observer={}, size_t max_observed_bytes=8 *1024 *1024)
 Forward an exchange to an explicit URL without redirects or retries.