Skip to content

Commit

Permalink
issue-128: fix description for request_line method
Browse files Browse the repository at this point in the history
  • Loading branch information
lowitea authored and 0x501D committed Nov 29, 2022
1 parent 38ff223 commit 7881864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -249,7 +249,7 @@ end
* `req.peer` - a Lua table with information about the remote peer
(like `socket:peer()`).
* `tostring(req)` - returns a string representation of the request.
* `req:request_line()` - returns the request body.
* `req:request_line()` - returns a first line of the http request (for example, `PUT /path HTTP/1.1`).
* `req:read(delimiter|chunk|{delimiter = x, chunk = x}, timeout)` - reads the
raw request body as a stream (see `socket:read()`).
* `req:json()` - returns a Lua table from a JSON request.
Expand Down

0 comments on commit 7881864

Please sign in to comment.