1
0
Fork 0
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:
Ryan Guest 2019-08-21 21:41:37 -07:00 committed by Andy Brody
parent cf3e5a115b
commit 26280d47b2
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ require File.dirname(__FILE__) + '/restclient/windows'
# # DELETE # # DELETE
# RestClient.delete 'http://example.com/resource' # 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 = RestClient.get 'http://example.com/some.jpg'
# res.code # => 200 # res.code # => 200
# res.headers[:content_type] # => 'image/jpg' # res.headers[:content_type] # => 'image/jpg'

View file

@ -1,7 +1,7 @@
module RestClient module RestClient
# The response from RestClient on a raw request looks like a string, but is # 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 # 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: # headers you can:
# #
# RestClient.get('http://example.com').headers[:content_type] # RestClient.get('http://example.com').headers[:content_type]