Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/wreq_ruby/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ def url
def content_length
end

# Get the response headers.
#
# Header names are case-insensitive. Use {Wreq::Headers#get_all} to get
# every value when a header appears more than once.
#
# @return [Wreq::Headers] Response headers
# @example
# response.headers.get("content-type") # => "application/json"
def headers
end

# Get the local socket address.
#
# @return [String, nil] Local address (e.g., "127.0.0.1:54321"), or nil
Expand Down
Loading