Skip to content
HTTP headers, media-types, methods, relations and status codes, all summarized and linking to their specification.
Emacs Lisp JavaScript
Find file
Pull request Compare This branch is 90 commits behind for-GET:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
emacs
js
json
.gitignore
AUTHORS
CONTRIBUTING.md
LICENSE
README.md
headers.md
methods.md
package.json
relations.md
specs.md
status-codes.md

README.md

KNOW YOUR HTTP * WELL

HTTP headers, media types, methods, relations and status codes, all summarized and linking to their specification.

This project is used by HyperREST bin at bin.hyperrest.com .

Table of Contents

How to convert to other formats

Packages

Emacs

(require 'know-your-http-well)
;; M-x http-header ;; content-type
;; M-x http-method ;; post | POST
;; M-x http-relation ;; describedby
;; M-x http-status-code ;; 500
;; M-x http-status-code ;; not_found | NOT_FOUND

JavaScript

var httpWell = require('know-your-http-well'),
    statusWell = httpWell.statusPhrasesToCodes,
    phraseWell = httpWell.statusCodesToPhrases;

// on the server side
res.statusCode = statusWell.NOT_FOUND

// on the client side
if (res.statusCode !== statusWell.OK) {
    // Log "Request returned 404 Not Found"
    log('Request returned ' + res.statusCode + ' ' + phraseWell[res.statusCode]);
}

JSON

Just take a look at ./json/*.json.

License

Unlicense.

Something went wrong with that request. Please try again.