Code Monkey home page Code Monkey logo

simple-http_s-client's Introduction

Simple http(s) client

A simple HTTP(S) client in Ruby to query any RESTful API.


Will be Implemented Request methods :

  • GET
  • POST
  • PUT
  • DELETE

Need to be implemented :

  • HEAD
  • TRACE
  • OPTIONS
  • CONNECT
  • PATCH

Request methods cheat-sheet

HTTP Method RFC Request has Body Response has body Safe Idempotent Cacheable
GET 7231 No Yes Yes Yes Yes
HEAD 7231 No No Yes Yes Yes
POST 7231 Yes Yes No No Yes
PUT 7231 Yes Yes No Yes No
DELETE 7231 No Yes No Yes No
PATCH 5789 Yes Yes No No Yes
CONNECT 7231 Yes Yes No No No
TRACE 7231 No Yes Yes Yes No
OPTIONS 7231 Optional Yes Yes Yes No

Some "Request Methods" explanations

HEAD

The HEAD method asks for a response identical to that of a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content

TRACE

The TRACE method echoes the received request so that a client can see what (if any) changes or additions have been made by intermediate servers.

OPTIONS

The OPTIONS method returns the HTTP methods that the server supports for the specified URL. This can be used to check the functionality of a web server by requesting '*' instead of a specific resource.

CONNECT

The CONNECT method converts the request connection to a transparent TCP/IP tunnel, usually to facilitate SSL-encrypted communication (HTTPS) through an unencrypted HTTP proxy.

simple-http_s-client's People

Contributors

sfeuga avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.