mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
2.3 KiB
2.3 KiB
Examples
-
- Httparty included into poro class
- Uses
get
requests - Transforms query params to uppercased params
-
- Httparty included into poro class
- Uses
get
requests
-
- Creates a custom parser for XML using crack gem
- Uses
get
request
-
- Adds Html as a format
- passed the body of request to Nokogiri
-
- Create an additional parser for atom or make it the ONLY parser
-
- Basic Auth, shows how to merge those into options
- Uses
get
requests
-
- Use the class method of Httparty
- Pass the User-Agent in the headers
- Uses
get
requests
-
- Httparty included into poro class
- Uses
post
requests
-
- Httparty included into poro class
- Uses
post
requests
-
- create a log file and have httparty log requests
-
- Httparty included into poro class
- Creates methods for different endpoints
- Uses
get
requests
-
- Httparty included into poro class
- Example of using
debug_output
to see headers/urls passed - Getting and using Cookies
- Uses
get
requests
-
- Httparty included into poro class
- Basic Auth
- Loads settings from a config file
- Uses
get
requests - Uses
post
requests
-
- Httparty included into poro class
- Uses
get
requests - Two ways to pass params to get, inline on the url or in query hash
-
- Rescue errors due to parsing response
-
Download file using stream mode
- Uses
get
requests - Uses
stream_body
mode - Download file without using the memory
- Uses
-
- Basic Auth
- Uses
post
requests - Uses multipart
-
- Multipart data upload (with and without file)
-
- Uses
body_stream
to upload file
- Uses