Methods
Attributes
[R] | http_response |
Class Public methods
for(host) Link
new(host) Link
Instance Public methods
to_s() Link
# File ruby/lib/rubygems/gemcutter_utilities/webauthn_listener/response.rb, line 41 def to_s status_line = "HTTP/#{@http_response.http_version} #{@http_response.code} #{@http_response.message}\r\n" headers = @http_response.to_hash.map {|header, value| "#{header}: #{value.join(", ")}\r\n" }.join + "\r\n" body = @http_response.body ? "#{@http_response.body}\n" : "" status_line + headers + body end