frequest

membuat http request

frequest

TODO: Write a description here

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      frequest:
        github: taufikmaulanaa/frequest
    
  2. 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

  1. Fork it (https://github.com/taufikmaulanaa/frequest/fork)
  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

  • Taufik - creator and maintainer
Repository

frequest

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • 8 months ago
  • September 24, 2024
License

MIT License

Links
Synced at

Fri, 30 May 2025 17:33:26 GMT

Languages