Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dpogue/curler
A ruby gem to log outgoing network requests as cURL commands.
https://github.com/dpogue/curler
Last synced: 3 months ago
JSON representation
A ruby gem to log outgoing network requests as cURL commands.
- Host: GitHub
- URL: https://github.com/dpogue/curler
- Owner: dpogue
- License: mit
- Created: 2015-09-02T02:49:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T14:49:05.000Z (over 3 years ago)
- Last Synced: 2024-10-04T11:41:16.923Z (3 months ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Curler
======Log Net::HTTP requests as cURL commands.
Installation
------------* Github: https://github.com/dpogue/curler
* Gem:
```
$ gem install curler
```* Bundler/Gemfile:
```ruby
gem 'curler'
```Usage
-----This adds a class-level `curl_log` method to Net::HTTP to specify a log location for the cURL commands.
```ruby
# Set the output location, as either a string or an IO object
Net::HTTP.curl_log('requests.log')# Now make requests with Net::HTTP
```Contributing
------------Contributions of bug reports, feature requests, and pull requests are greatly appreciated!
Please note that this project is released with a [Contributor Code of Conduct](https://github.com/dpogue/curler/blob/master/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
Licence
-------Copyright © 2018 Darryl Pogue
Licensed under the MIT Licence.