for-GET/know-your-http-well


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

License: Unlicense

Language: Emacs Lisp

Keywords: emacs, http, http-header, http-method, http-status-code, json


KNOW YOUR HTTP * WELL

HTTP encodings, 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.

Project Statistics

Sourcerank 11
Repository Size 15.2 MB
Stars 1,924
Forks 120
Watchers 69
Open issues 8
Dependencies 1
Contributors 6
Tags 12
Created
Last updated
Last pushed

Top Contributors See all

Andrei Neculau Erik Wilde bluehallu Andrew Cherry Will Jordan Christopher Adams

Packages Referencing this Repo

know-your-http-well
HTTP headers, media-types, methods, relations and status codes, all summarized and linking to the...
Latest release 0.5.0 - Updated - 1.92K stars

Recent Tags See all

v0.5.0 February 08, 2016
v0.4.0 December 20, 2015
v0.3.0 November 19, 2015
v0.2.0 June 08, 2014
v0.1.5 November 26, 2013
v0.1.4 November 12, 2013
v0.1.3 October 13, 2013
v0.1.2 September 27, 2013
v0.1.1 September 08, 2013
v0.1.0 July 05, 2013
v0.0.4 July 04, 2013
v0.0.3 July 04, 2013

Something wrong with this page? Make a suggestion

Last synced: 2016-11-24 14:04:16 UTC

Login to resync this repository