MSP-8172 Add vendor
This commit is contained in:
1 parent
5175d87e08
commit
eb066cb055
2619 files changed
+757077
-2
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
package httpcli
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Request wraps an http.Request with additional metadata for middleware processing.
|
||||
type Request struct {
|
||||
Raw *http.Request
|
||||
|
||||
retryOptions *retryOptions
|
||||
body []byte
|
||||
timeout time.Duration
|
||||
|
||||
decodeResponse bool
|
||||
encodeRequest bool
|
||||
encodeThreshold int
|
||||
}
|
||||
|
||||
// Body returns the request body as bytes.
|
||||
//
|
||||
// Returns an empty slice if MultipartRequestBody was used, as multipart data
|
||||
// is streamed directly and not buffered.
|
||||
func (r *Request) Body() []byte {
|
||||
return r.body
|
||||
}
|
||||
Reference in new issue
Block a user