Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanusart/http-info
Simple informative API for HTTP: methods, headers and response codes - http://httpinfo-sanusart.rhcloud.com/
https://github.com/sanusart/http-info
Last synced: about 1 month ago
JSON representation
Simple informative API for HTTP: methods, headers and response codes - http://httpinfo-sanusart.rhcloud.com/
- Host: GitHub
- URL: https://github.com/sanusart/http-info
- Owner: sanusart
- License: mit
- Created: 2015-04-01T23:33:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-02T23:12:19.000Z (almost 10 years ago)
- Last Synced: 2024-10-30T06:27:26.417Z (3 months ago)
- Language: Shell
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTTP info
Simple informative API for HTTP: methods, headers and response codes.
Based on json files of Andrei's Neculau [know-your-http-well](https://github.com/for-GET/know-your-http-well)
# Usage:
---
### Request **Methods** info:
#### `GET /method/:method` [»](http://httpinfo-sanusart.rhcloud.com/method/get)
> e. g. http://httpinfo-sanusart.rhcloud.com/method/get
_Returns json object_ of type _`application/json`_
---
### Request **Status codes** info:
#### `GET /status-code/:code` [»](http://httpinfo-sanusart.rhcloud.com/status-code/404)
> e. g. http://httpinfo-sanusart.rhcloud.com/status-code/404
_Returns json object_ of type _`application/json`_
---
### Request **Headers** info:
#### `GET /header/:header` [»](http://httpinfo-sanusart.rhcloud.com/header/content-type)
> e.g. http://httpinfo-sanusart.rhcloud.com/header/content-type
_Returns json object_ of type _`application/json`_
---
## Local Installation
- Clone the repo
- Run `npm install`
- Run the sever with `node --harmony app.js`For MongoDB population/updates see [post_deploy](https://github.com/sanusart/http-info/blob/master/.openshift/action_hooks/post_deploy) hook
---
Made using [Koa.js](http://koajs.com/) and [MongoDB](http://www.mongodb.org/)
Hosted on [OpenShift Online](https://www.openshift.com/products/online)
License: [MIT](https://github.com/sanusart/http-info/blob/master/LICENSE)