Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emmy-http-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emmy-http-client

  • 0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

EmmyHttp::Client

This gem is part of Emmy framework

gem install emmy

Usage

response = Emmy.request(url: "http://httpbin.org/get").sync

or,

request = Emmy.request(url: "http://httpbin.org/post", form: {param: 'foo'}).post.sync

Long way,

request = EmmyHttp::Request.new(url: "http://google.com")
operation = EmmyHttp::Operation.new(request, EmmyHttp::Client::Adapter)
response = operation.sync

Asynchronous requests

Emmy.run_block {
  responses = {
      get_request:  Emmy.request!(url: "http://httpbin.org/get")
      post_request: Emmy.request!(url: "http://httpbin.org/post", type: "POST", form: {param: 'foo'})
  }.sync

  p responses[:get_request]
  p responses[:post_request]
}

FAQs

Package last updated on 10 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc