Coming soon! A Pro version of the Flipper gem for entirely local installations.

Get Updates

Documentation

HTTP Adapter

HTTP adapter for use with the Flipper API.

View the Flipper API documentation.

Given you have mounted the Flipper Api on an application, you can use the HTTP adapter to interact with Flipper just like any other adapter, and internally it will handle all the http requests for you. This means that you can have the application exposing the API store your Flipper data, but interact with it from other Ruby apps.

Initialize the HTTP adapter with a configuration Hash.

require 'flipper/adapters/http'

Flipper.configure do |config|
  config.adapter do
    Flipper::Adapters::Http.new({
      url: 'http://app.com/mount-point', # required
      headers: { 'X-Custom-Header' => 'foo' },
      basic_auth_username: 'user123',
      basic_auth_password: 'password123'
      read_timeout: 5,
      open_timeout: 2,
    })
  end
end

Required keys:

Optional keys:
These will affect every request the adapter makes. For example, send basic auth credentials with every request.

  • headers: HTTP headers.
  • basic_auth_username: Basic Auth username.
  • basic_auth_password: Basic Auth password.
  • read_timeout: number in seconds.
  • open_timeout: number in seconds.
  • debug_output: Set an output stream for debugging (e.g. debug_output: $stderr). The output stream is passed on to Net::HTTP#set_debug_output.
Ready to try it out?

Get audit history, rollbacks, advanced permissions, analytics, and all of your projects in one place.


Prefer our Cloudless option?

You can choose from several tiers to sponsor Flipper on GitHub and get some great benefits!

The Friday Deploy

Get updates for all things Flipper—open source and cloud.

Have questions? Need help?

Email us any time or head on over to our documentation or status page for the latest on the app or API.

Ready to take Flipper for a swim?

No credit card required. 14-day free trial. And customer support directly from the developers.