class MdNotes::HttpResponse
Http response received.
Attributes
headers[R]
raw_body[R]
reason_phrase[R]
request[R]
status_code[R]
Public Class Methods
new(status_code, reason_phrase, headers, raw_body, request)
click to toggle source
The constructor @param [Integer] The status code returned by the server. @param [String] The reason phrase returned by the server. @param [Hash] The headers sent by the server in the response. @param [String] The raw body of the response. @param [HttpRequest] The request that resulted in this response.
# File lib/md_notes/http/http_response.rb, line 17 def initialize(status_code, reason_phrase, headers, raw_body, request) @status_code = status_code @reason_phrase = reason_phrase @headers = headers @raw_body = raw_body @request = request end