mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Updated README to include httpHeaders
This commit is contained in:
committed by
Leonid Bugaev
parent
b1092d1567
commit
4e46bb46af
@@ -103,6 +103,7 @@ Package expose following functions to process raw HTTP payloads:
|
||||
* `httpPathParam` - get param from URL path: `gor.httpPathParam(req.http, queryParam)`
|
||||
* `setHttpPathParam` - set URL param: `req.http = gor.setHttpPathParam(req.http, queryParam, value)`
|
||||
* `httpStatus` - response status code
|
||||
* `httpHeaders` - get all headers: `gor.httpHeaders(req.http)`
|
||||
* `httpHeader` - get HTTP header: `gor.httpHeader(req.http, "Content-Length")`
|
||||
* `setHttpHeader` - Set HTTP header, returns modified payload: `req.http = gor.setHttpHeader(req.http, "X-Replayed", "1")`
|
||||
* `httpBody` - get HTTP Body: `gor.httpBody(req.http)`
|
||||
|
||||
Reference in New Issue
Block a user