NAME
req - interactive requests
SYNOPSIS
/bin/req
DESCRIPTION
Req is an interactive program for making 6b requests.
Using programatically
The process exposes these resources:
- head
- GET
Read the request's current verb and path.
- PUT
Update the request's verb and path.
- Body
a string containing a verb and a path
- body
- GET
Read the request's current body.
- PUT
Update the request's current body.
- Body
the body
- res
- GET
Read the response.
- PUT
Update the response.
- Body
a response
- more
- GET
Read whether the response is shown in full (yes) or cut to its first line (no).
- PUT
Fold or unfold the response line.
- Body
'yes' or 'no'
- dirty
- GET
Read whether the request has changed since it was last sent (yes) or not (no).
- PUT
Mark the window as dirty
- Body
'yes' or 'no'
- ctl
- PUT
Send a command.
- send
Send the current request.
Using interactively
The input at the top is the head, that's where the verb and the path go.
The text area below is the body, which will be sent along with the verb and path from the head when the send button is pressed.
The send button sends the verb, path and body, and updates the body with the response when it's a GET, or shows a response below the body when it's not empty, or an error.
Mod + click on the response expands it.
Mod + Enter sends the request when in the input or textarea.