MCPcopy Create free account
hub / github.com/cloudfoundry/cli / ResetBody

Method ResetBody

api/cfnetworking/request.go:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func (r *Request) ResetBody() error {
21 if r.body == nil {
22 return nil
23 }
24
25 _, err := r.body.Seek(0, 0)
26 return err
27}
28
29func NewRequest(request *http.Request, body io.ReadSeeker) *Request {
30 return &Request{

Callers 3

displayRequestMethod · 0.45
MakeMethod · 0.45
MakeMethod · 0.45

Calls 1

SeekMethod · 0.45

Tested by

no test coverage detected