MCPcopy Index your code
hub / github.com/dnnrly/httpref

github.com/dnnrly/httpref @v1.6.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.6.1 ↗ · + Follow
24 symbols 65 edges 9 files 8 documented · 33%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

HTTP Reference

This is a handy little helper that puts HTTP reference at your fingertips, when you're on the CLI, when you need it.

ko-fi

codecov godoc report card

GitHub watchers GitHub stars

Twitter URL

But why?

Because I can never remember what the bloody http status codes mean, or the details of methods, or whatever. It's annoying!

Why not just wikipedia?

Well it boils down to 2 things:

  1. If I use the browser then it means that I have to use the mouse, or a track pad or something.
  2. I'm a little bored on a Friday night. There's some rubbish film on. Quite frankly I'm a little bored.
  3. If I make it good enough then people will give me stars. This, as everyone knows, is a proxy for love and it will make up for many deficiencies in my life.
  4. My attention to detail is incredible. I therefore invite you to sponsor me using the links at the top of the page. :)

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

Installation

$ go get github.com/dnnrly/httpref/cmd/httpref

Usage

Filter by Title

$ 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

Full-text Search

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

Important make targets

  • deps - downloads all of the deps you need to build, test, and release
  • build - builds your application
  • test - runs unit tests
  • ci-test - run tests for CI validation
  • acceptance-test - run the acceptance tests
  • lint - run linting
  • update - update Go dependencies
  • clean - clean project dependencies
  • clean-deps - remove all of the build dependencies too

Core symbols most depended-on inside this repo

Titles
called by 8
httpref.go
printResults
called by 7
cmd/root.go
ByName
called by 5
httpref.go
Summarize
called by 3
httpref.go
InRange
called by 3
httpref.go
Search
called by 3
httpref.go
subCmd
called by 3
cmd/root.go
Describe
called by 2
httpref.go

Shape

Function 16
Method 6
Struct 1
TypeAlias 1

Languages

Go100%

Modules by API surface

httpref_test.go8 symbols
httpref.go8 symbols
cmd/root.go7 symbols
cmd/httpref/main.go1 symbols

For agents

$ claude mcp add httpref \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact