mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Fix a couple typos (#590)
This commit is contained in:
parent
cf3e5a115b
commit
26280d47b2
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ require File.dirname(__FILE__) + '/restclient/windows'
|
|||
# # DELETE
|
||||
# RestClient.delete 'http://example.com/resource'
|
||||
#
|
||||
# # retreive the response http code and headers
|
||||
# # retrieve the response http code and headers
|
||||
# res = RestClient.get 'http://example.com/some.jpg'
|
||||
# res.code # => 200
|
||||
# res.headers[:content_type] # => 'image/jpg'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
module RestClient
|
||||
# The response from RestClient on a raw request looks like a string, but is
|
||||
# actually one of these. 99% of the time you're making a rest call all you
|
||||
# care about is the body, but on the occassion you want to fetch the
|
||||
# care about is the body, but on the occasion you want to fetch the
|
||||
# headers you can:
|
||||
#
|
||||
# RestClient.get('http://example.com').headers[:content_type]
|
||||
|
|
Loading…
Reference in a new issue