Skip to content

Commit

Permalink
docs: added missing API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vlastahajek committed Jul 28, 2022
1 parent b02a754 commit 6274621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/test/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (t *HTTPService) SetWasGzip(wasGzip bool) {
t.wasGzip = wasGzip
}

// SetRequestHandler sets custom handler for requests
func (t *HTTPService) SetRequestHandler(fn func(url string, body io.Reader) error) {
t.requestHandler = fn
}
Expand Down Expand Up @@ -142,6 +143,7 @@ func (t *HTTPService) DoPostRequest(_ context.Context, url string, body io.Reade
return nil
}

// DecodeLines parses request body for lines
func (t *HTTPService) DecodeLines(body io.Reader) error {
bytes, err := ioutil.ReadAll(body)
if err != nil {
Expand Down

0 comments on commit 6274621

Please sign in to comment.