GithubHelp home page GithubHelp logo

faraday-typhoeus's Introduction

Faraday Adapter Template

This repo is a template for building Faraday adapters. Faraday is an HTTP client library that provides a common interface over many adapters. Every adapter is defined into it's own gem. Use this repository to create your own adapter gem.

Getting Started

Setting up and cloning the repo

You can start using GitHub's Use this template button. Use this template

This will create a repository based off from this template. After that is created, you can clone it locally to start working on it.

Refactoring the template

The next step is for you to find and replace all the "parametrised" names in this template and change them to make it unique. First of all, you should decide on the name of your adapter. The current convention (which is by no means mandatory) is to call adapter gems as faraday-<adapter_name>. Here are some examples:

In this template repository, the placeholder for your chosen adapter name is MyAdapter (my_adapter). So once you decide on the final name you want to use you should update all occurrences of MyAdapter and all files with my_adapter in their name with the new name you chose.

Main implementation

The bulk of the implementation is in the Faraday::Adapter::MyAdapter class. We've added lots of comments in there to guide you through it, but if you have any doubt/question please don't hesitate to get in touch!

faraday-typhoeus's People

Contributors

hanshasselberg 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.