18#ifndef A11_NET_HTTP_RELAY_H_
19#define A11_NET_HTTP_RELAY_H_
26#include <absl/time/time.h>
39 std::string_view data)>;
61 std::shared_ptr<Http2ResponseWriter> writer,
63 absl::Time deadline = absl::InfiniteFuture(),
65 size_t max_observed_bytes = 8 * 1024 * 1024);
Completion values used by every asynchronous A11 operation.
A11's nghttp2 HTTP/2 client, server, and streaming primitives.
std::function< absl::Status(std::string_view event, const HttpResponseHead &head, std::string_view data)> HttpRelayObserver
Observe response headers/body/completion without altering the exchange.
Definition relay.h:39
a11::Task RelayHttp(std::string target, HttpRequest request, std::shared_ptr< Http2ResponseWriter > writer, Http2Options options, absl::Time deadline, HttpRelayObserver observer, size_t max_observed_bytes)
Forward an exchange to an explicit URL without redirects or retries.
Definition relay.cc:130
stores::ChunkStoreReaderOptions options
Definition runtime_streams.cc:31
Body-size limits, buffering thresholds, deadline, TLS, and HTTP protocol negotiation for an HTTP clie...
Definition http2.h:150
A parsed HTTP/2 request: pseudo-headers, fields, and body.
Definition http2.h:90
Status line and headers of an HTTP/2 response, without the body.
Definition http2.h:103
std::string target
Which editor definition syntax is about; every one when empty, which is the default.
Definition main.cc:75