Starts an HTTP/2 response from a handler, returning a duplex stream. The handler must complete its work before returning; no second ordinary response is sent. Request fields remain borrowed until close_exchange; response fields are copied. defer_headers permits replacement before the first write/finish commits them.
Signature
accept_http2_exchange :: (
request: *Request,
headers: [] Header_Field,
status := 200,
defer_headers := false
) -> (Http2_Exchange, bool)
exchange, ok := accept_http2_exchange(request, Header_Field.[.{ name = "content-type", value = "application/grpc" }]);
defer close_exchange(*exchange);