Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lost22git/puppy.cr
Http Client based on platform http api.
https://github.com/lost22git/puppy.cr
crystal crystal-lang http-client winhttp
Last synced: 13 days ago
JSON representation
Http Client based on platform http api.
- Host: GitHub
- URL: https://github.com/lost22git/puppy.cr
- Owner: lost22git
- License: mit
- Created: 2024-05-02T13:23:18.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-03T15:23:32.000Z (6 months ago)
- Last Synced: 2024-10-04T21:31:46.876Z (about 1 month ago)
- Topics: crystal, crystal-lang, http-client, winhttp
- Language: Crystal
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# puppy
[API DOC](https://lost22git.github.io/puppy.cr)
Http Client based on platform http api.
Inspire from [puppy nim](https://github.com/treeform/puppy)
## Status
- [x] Windows
- [ ] Linux
- [ ] Macos## Feature
- No openssl required (aka. you can `crystal build -Dwithout_openssl`)
- Http proxy support## Limit
- No support response body streaming
- More to be discover## Installation
1. Add the dependency to your `shard.yml`:
```yaml
dependencies:
puppy:
github: lost22git/puppy.cr
```2. Run `shards install`
## Usage
```crystal
require "puppy"response = Puppy.get "https://httpbin.org/status/444"
puts response.body_io.gets_to_end
```## Development
### Run tests
```sh
crystal spec --progress
```## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request## Contributors
- [lost](https://github.com/lost22git) - creator and maintainer