class Protocol::HTTP::Response

def as_json(...)

@returns [Hash] The response as a hash.

Convert the response to a hash suitable for serialization.
def as_json(...)
	{
		version: @version,
		status: @status,
		headers: @headers&.as_json,
		body: @body&.as_json,
		protocol: @protocol
	}
end