MCPcopy Index your code
hub / github.com/cloudfoundry/cli / ResetBody

Method ResetBody

api/router/request.go:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (r *Request) ResetBody() error {
19 if r.body == nil {
20 return nil
21 }
22
23 _, err := r.body.Seek(0, 0)
24 return err
25}
26
27// Params represents URI parameters for a request.
28type Params map[string]string

Callers 2

displayRequestMethod · 0.45
MakeMethod · 0.45

Calls 1

SeekMethod · 0.45

Tested by

no test coverage detected