Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeantessier/custom_headers

A sample Rails app that shows how to manipulate HTTP request headers
https://github.com/jeantessier/custom_headers

Last synced: about 1 month ago
JSON representation

A sample Rails app that shows how to manipulate HTTP request headers

Awesome Lists containing this project

README

        

# Custom Header

This sample application tries to pass a custom header to a controller as part
of a request spec.

## Running Tests

$ bundle exec rspec

## Running the Server

$ bin/rails server

Then, you can call the controller with a custom header with:

$ http :3000/custom_headers X-MyHeader:"My special header value"