Documentation ¶
Index ¶
- func GetGorequestTransport() transport.Factory
- func PrepareRequestDetail(s *gorequest.SuperAgent, c *dudu.RequestDetail) error
- func RequestRemote(s *gorequest.SuperAgent) (response gorequest.Response, body []byte, errs []error)
- func UncompressContentEncoding(compressionType string, content io.Reader) (uncompressContent []byte, err error)
- type RequestTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGorequestTransport ¶
GetGorequestTransport returns new transport.Factory.
func PrepareRequestDetail ¶
func PrepareRequestDetail(s *gorequest.SuperAgent, c *dudu.RequestDetail) error
PrepareRequestDetail will prepare some options and request-details when a request fetch to remote.
func RequestRemote ¶
func RequestRemote(s *gorequest.SuperAgent) (response gorequest.Response, body []byte, errs []error)
RequestRemote send request to remote server.
Types ¶
type RequestTransport ¶
type RequestTransport struct {
// contains filtered or unexported fields
}
RequestTransport request transport tool struct.
func (*RequestTransport) FetchRemoteResponse ¶
func (e *RequestTransport) FetchRemoteResponse(c *dudu.RequestDetail) (*http.Response, []byte, error)
FetchRemoteResponse fetch remote response.
func (*RequestTransport) GoRequest ¶
func (e *RequestTransport) GoRequest() transport.GoRequestTransport
GoRequest got transport.GoRequestTransport obj.
Click to show internal directories.
Click to hide internal directories.