know-your-http-well

WebJar for know-your-http-well

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

know-your-http-well
Last Version

Last Version

0.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

know-your-http-well
WebJar for know-your-http-well
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/for-GET/know-your-http-well

Download know-your-http-well

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/know-your-http-well/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>know-your-http-well</artifactId>
    <version>0.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/know-your-http-well/
implementation 'org.webjars.npm:know-your-http-well:0.5.0'
// https://jarcasting.com/artifacts/org.webjars.npm/know-your-http-well/
implementation ("org.webjars.npm:know-your-http-well:0.5.0")
'org.webjars.npm:know-your-http-well:jar:0.5.0'
<dependency org="org.webjars.npm" name="know-your-http-well" rev="0.5.0">
  <artifact name="know-your-http-well" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='know-your-http-well', version='0.5.0')
)
libraryDependencies += "org.webjars.npm" % "know-your-http-well" % "0.5.0"
[org.webjars.npm/know-your-http-well "0.5.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : amdefine jar [0.0.4,0.1)

Project Modules

There are no modules declared in this project.

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.

org.webjars.npm

for-GET HTTP

Versions

Version
0.5.0