Project

yobi-http

0.0
The project is in a healthy, maintained state
+Yobi+ is a terminal tool to make +HTTP+ requests and display responses in a friendly way inspired by HTTPie. It allows you to easily send HTTP requests and view the responses in a human-readable format, making it easier to debug and test APIs from the command line. === The main features of Yobi include: * Support for various HTTP methods <i>(GET, POST, PUT, DELETE, etc.)</i> * Customizable request +headers+ and +body+ * Pretty-printed responses with <i>syntax highlighting</i> * <i>Download mode</i> saves response content to a file * <i>Low dependency</i> and <i>easy installation</i> via RubyGems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.3
 Project Readme

Gem Version License: MIT Maintainability

Yobi(呼び) Http Client

Yobi is a Ruby gem that provides a simple and efficient way to make HTTP requests. It is designed to be easy to use and flexible, allowing you to customize your requests as needed.

Its a lightweight implementation of the HTTPie tool, which is a command-line HTTP client that allows you to make HTTP requests and view the responses in a human-friendly format.

Installation

gem install yobi-http

Usage

Some examples of how to use yobi:

  • yobi GET https://jsonplaceholder.typicode.com/posts/1 - Makes a GET request to the specified URL and prints the response.
  • yobi POST https://jsonplaceholder.typicode.com/posts title="foo" body="bar" userId=1 - Makes a POST request to the specified URL with the given data and prints the response.
  • yobi GET https://jsonplaceholder.typicode.com/posts/1 Authorization:"Bearer <token>" - Makes a GET request to the specified URL with the given header and prints the response.

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dvinciguerra/yobi-http. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

Code of Conduct

Everyone interacting in the yobi-http project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.