GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rehttp/rehttp: A tool to share and collaborate on HTTP requests and responses

This repository was archived by the owner on Jul 25, 2023. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

144 Commits
144 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
bin
bin
 
 
config
config
 
 
db
db
 
 
features/support
features/support
 
 
lib
lib
 
 
log
log
 
 
public
public
 
 
screenshots
screenshots
 
 
script
script
 
 
spec
spec
 
 
test
test
 
 
vendor/assets
vendor/assets
 
 
.gitignore
.gitignore
 
 
.ruby-version
.ruby-version
 
 
.travis.yml
.travis.yml
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
Guardfile
Guardfile
 
 
LICENSE
LICENSE
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
config.ru
config.ru
 
 

Repository files navigation

ReHTTP

ReHTTP is a project to help developers debug, collaborate and share HTTP requests. This tool is designed to take all the features missing from existing tools and bring them into a single open source application.

Alternatives

  • RequestBin
  • hurl.it
  • Blueprint

Minimum requirements

  • Ruby 2.1.0
  • PostgreSQL

Setup

$ script/bootstrap

This will check everything is where it should be and that you have all the required dependencies available.

Running the application

ReHTTP is running on unicorn and follows the unix process model and resources are controlled via a Procfile. This allows gives the ability of determining what process types get what resources within the application and also allows for quick scalability should it be needed.

To start the web server, run script/server.

Embedding requests

ReHTTP gives you the ability to embed a particular request into any page. This becomes quite handy for documentation or example use guides as it has the request and response available for inspection. In addition to the base embedding of the body you can choose what parts (navigation, URL and headers) of the request you would would like to show. Below are some screenshots and the embed code to achieve them.

Just body response <script src="https://rehttp.me/r/a93d2a2a.js"></script>.

no-embed-options

Body with URL <script src="https://rehttp.me/r/a93d2a2a.js?show_url=true"></script>

no-embed-options

Body with navigation <script src="https://rehttp.me/r/a93d2a2a.js?show_navigation=true"></script>

no-embed-options

Body with HTTP headers <script src="https://rehttp.me/r/a93d2a2a.js?show_headers=all"></script>

no-embed-options

In addition to the examples above, you can also mix and match the embed request params to suit your needs.

URL with navigation <script src="https://rehttp.me/r/a93d2a2a.js?show_navigaton=true&show_url=true"></script>

no-embed-options

URL with HTTP headers <script src="https://rehttp.me/r/a93d2a2a.js?show_url=true&show_headers=all"></script>

no-embed-options

Displaying HTTP headers

When embedding requests you don't always need to show all HTTP request headers and instead you may only wish to show a selection of the headers that relate to the request at hand. ReHTTP allows you to do this by passing through the header name in the show_headers query parameter.

For example, if you only want to show the "status" and "content-type" HTTP headers you would use the following snippet.

<script src="https://rehttp.me/r/a93d2a2a.js?show_headers=status,content-type"></script>

Which would give you the following output:

embed-selective-headers

Running tests

The testing tool of choice is RSpec and the test suite can be run using script/test.

About

A tool to share and collaborate on HTTP requests and responses

rehttp.me

Resources

Readme
MIT license
Activity
Custom properties

Stars

56 stars

Watchers

1 watching

Forks

13 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.