class Async::HTTP::Protocol::HTTP2::Request

def assign_headers(headers)

def assign_headers(headers)
	headers.each do |key, value|
		if key == METHOD
			raise BadRequest, "Request method already specified" if @method
			
			@method = value
		elsif key == PATH
			raise BadRequest, "Request path already specified" if @path
			
			@path = value
		elsif key == AUTHORITY
			raise BadRequest, "Request authority already specified" if @authority
			
			@authority = value
		else
			@headers[key] = value
		end
	end
end