Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

What happens if we model the semantics of HTTP methods in JavaScript?

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 http-methods.js
README.md

Modeling HTTP methods in JavaScript

About

In the blog post “The object-resource impedance mismatch”, I wondered what would happen if we model the semantics of HTTP methods in JavaScript. This is the accompanying code that allows you to play with it.

Usage

You need to have node.js or a another JavaScript interpreter installed. Then, execute this:

node http-methods.js

Alternatively, you can just use your browser's debug window.

The output makes most sense if you follow along with the source.

Something went wrong with that request. Please try again.