Skip to content

Instantly share code, notes, and snippets.

@tongson
Created April 13, 2021 10:30
Show Gist options
  • Save tongson/460eb815049ff585a0413669b1f9ae2a to your computer and use it in GitHub Desktop.
Save tongson/460eb815049ff585a0413669b1f9ae2a to your computer and use it in GitHub Desktop.
2021-April-13::"kapow resource tree"
/
├─ request
│ ├──── method HTTP Method used (GET, POST)
│ ├──── host Host part of the URL
│ ├──── version HTTP version of the request
│ ├──── path Complete URL path (URL-unquoted)
│ ├──── remote IP address of client
│ ├──── matches
│ │ └──── <name> Previously matched URL path parts
│ ├──── params
│ │ └──── <name> URL parameters (after the "?" symbol)
│ ├──── headers
│ │ └──── <name> HTTP request headers
│ ├──── cookies
│ │ └──── <name> HTTP request cookie
│ ├──── form
│ │ └──── <name> Value of the form field with name <name>
│ ├──── files
│ │ └──── <name>
│ │ └──── filename Original file name of the file uploaded in the form field <name>
│ │ └──── content The contents of the file uploaded in the form field <name>
│ └──── body HTTP request body
|─ ssl
│ └──── client
│ └──── i
│ └──── dn Subject's DN common name coming ina request through SSL with mTLS
│─ route
│ └──── id Id of the route that matched this request.
|─ server
│ └──── log Log to server stderr
│ └──── <prefix> Optional prefix to the message
└─ response
├──── status HTTP status code
├──── headers
│ └──── <name> HTTP response headers
├──── cookies
│ └──── <name> HTTP request cookie
└──── body Response body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment