Documentation ¶
Overview ¶
Package httphelper implements NewRequest, Do, DoRequest from a requestfactory.T and http.client
Index ¶
- func NewHttpsClient(insecure bool) *http.Client
- type T
- func (t *T) Do(req *http.Request) (*http.Response, error)
- func (t *T) DoRequest(method string, relPath string, body io.Reader) (*http.Response, error)
- func (t *T) NewRequest(method string, relPath string, body io.Reader) (*http.Request, error)
- func (t *T) NewRequestWithContext(ctx context.Context, method string, relPath string, body io.Reader) (*http.Request, error)
- func (t *T) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpsClient ¶
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
func (*T) NewRequest ¶
func (*T) NewRequestWithContext ¶
Click to show internal directories.
Click to hide internal directories.