Skip to content

Commit 7881864

Browse files
lowitea0x501D
authored andcommitted
issue-128: fix description for request_line method
1 parent 38ff223 commit 7881864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ end
249249
* `req.peer` - a Lua table with information about the remote peer
250250
(like `socket:peer()`).
251251
* `tostring(req)` - returns a string representation of the request.
252-
* `req:request_line()` - returns the request body.
252+
* `req:request_line()` - returns a first line of the http request (for example, `PUT /path HTTP/1.1`).
253253
* `req:read(delimiter|chunk|{delimiter = x, chunk = x}, timeout)` - reads the
254254
raw request body as a stream (see `socket:read()`).
255255
* `req:json()` - returns a Lua table from a JSON request.

0 commit comments

Comments
 (0)