Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jeantessier/custom_headers
- Owner: jeantessier
- Created: 2019-11-07T22:14:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T22:55:08.000Z (8 months ago)
- Last Synced: 2024-04-26T00:13:30.052Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
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"