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

Method ResetBody

api/cloudcontroller/request.go:15–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15func (r *Request) ResetBody() error {
16 if r.body == nil {
17 return nil
18 }
19
20 _, err := r.body.Seek(0, 0)
21 return err
22}
23
24func NewRequest(request *http.Request, body io.ReadSeeker) *Request {
25 return &Request{

Callers 5

droplet_test.goFile · 0.45
buildpack_test.goFile · 0.45
package_test.goFile · 0.45
displayRequestMethod · 0.45
MakeMethod · 0.45

Calls 1

SeekMethod · 0.45

Tested by

no test coverage detected