class Async::HTTP::Protocol::HTTP2

def write_request(request, stream)

def write_request(request, stream)
 = Headers::Merged.new({
 => HTTPS,
 => request.method,
> request.path,
ITY => request.authority,
est.headers)
est.body.nil? or request.body.empty?
.headers(headers, end_stream: true)
t.body.read if request.body
m.headers(headers)

 RequestFailed.new
t.body.each do |chunk|
m.data(chunk, end_stream: false)
.data("")
onnection
.flush