Update README.md

This commit is contained in:
Leonid Bugaev
2017-05-17 22:48:45 +03:00
committed by GitHub
parent c23f95d4cf
commit cdd818fe77
+1
View File
@@ -98,6 +98,7 @@ gor.on("request", function(req) {
Package expose following functions to process raw HTTP payloads:
* `init` - initialize middleware object, start reading from STDIN.
* `httpPath` - URL path of the request: `gor.httpPath(req.http)`
* `httpMethod` - Http method: 'GET', 'POST', etc. `gor.httpMethod(req.http)`.
* `setHttpPath` - update URL path: `req.http = gor.setHttpPath(req.http, newPath)`
* `httpPathParam` - get param from URL path: `gor.httpPathParam(req.http, queryParam)`
* `setHttpPathParam` - set URL param: `req.http = gor.setHttpPathParam(req.http, queryParam, value)`