class Protocol::HTTP::Response
def as_json(...)
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
def as_json(...) { version: @version, status: @status, headers: @headers&.as_json, body: @body&.as_json, protocol: @protocol } end