This is a handy little helper that puts HTTP reference at your fingertips, when you're on the CLI, when you need it.
Because I can never remember what the bloody http status codes mean, or the details of methods, or whatever. It's annoying!
Well it boils down to 2 things:
Before we get any further, I'm really interested in how you feel about this tool. Please take the time to fill in this short survey: https://forms.gle/mHh6idwwUvdfYZM67
$ go get github.com/dnnrly/httpref/cmd/httpref
$ httpref 1
1xx Informational response
100 Continue
101 Switching
102 Processing
103 Early hints
$ httpref 200
200 - OK
The HTTP 200 OK success status response code indicates that the request has succeeded. A 200 response is cacheable by default.
The meaning of a success depends on the HTTP request method:
GET: The resource has been fetched and is transmitted in the message body.
HEAD: The entity headers are in the message body.
POST: The resource describing the result of the action is transmitted in the message body.
TRACE: The message body contains the request message as received by the server.
The successful result of a PUT or a DELETE is often not a 200 OK but a 204 No Content (or a 201 Created when the resource is uploaded for the first time).
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/200
The --search option accepts a term to full-text search. This option is available for header, method, and status references.
$ httpref --search clear
Clear-Site-Data
Clears browsing data (e.g. cookies, storage, cache) associated with the requesting
website.
205
Reset Content
431
Request Header Fields Too Large
make targetsdeps - downloads all of the deps you need to build, test, and releasebuild - builds your applicationtest - runs unit testsci-test - run tests for CI validationacceptance-test - run the acceptance testslint - run lintingupdate - update Go dependenciesclean - clean project dependenciesclean-deps - remove all of the build dependencies too$ claude mcp add httpref \
-- python -m otcore.mcp_server <graph>