frequest
TODO Write a description here
Installation
-
Add the dependency to your
shard.yml:dependencies: frequest: github: taufikmaulanaa/frequest -
Run
shards install
Usage
require "frequest"
Cara membuat request
begin
response = Frequest.new(
method: "GET",
url: "http://api.id/test",
body: URI::Params.encode({ "username" => username }),
headers: HTTP::Headers{ "username" => "X" }
)
response
rescue exception
puts "error : #{exception.message})"
end
Development
TODO Write development instructions here
Contributing
- Fork it (https://github.com/taufikmaulanaa/frequest/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Taufik - creator and maintainer