Documentation
¶
Index ¶
- func NewCAPool(crts ...[]byte) *x509.CertPool
- func NewCAPoolFromFiles(files ...string) *x509.CertPool
- func NewCertificate(certData []byte, keyData []byte) (tls.Certificate, error)
- func NewCertificateFromFiles(certFile string, keyFile string) (tls.Certificate, error)
- type Auth
- type Cookie
- type Data
- type Files
- type Header
- type Json
- type Params
- type Proxy
- type Request
- type Response
- func Delete(origurl string, args ...interface{}) (resp *Response, err error)
- func Get(origurl string, args ...interface{}) (resp *Response, err error)
- func Head(origurl string, args ...interface{}) (resp *Response, err error)
- func Patch(origurl string, args ...interface{}) (resp *Response, err error)
- func Post(origurl string, args ...interface{}) (resp *Response, err error)
- func Put(origurl string, args ...interface{}) (resp *Response, err error)
- func (resp *Response) Content() []byte
- func (resp *Response) Cookies() (cookies []*http.Cookie)
- func (resp *Response) EndStruct(v interface{}) error
- func (resp *Response) Json(v interface{}) error
- func (resp *Response) Location() (*url.URL, error)
- func (resp *Response) SaveFile(filename string) error
- func (resp *Response) Text() string
- type SetTimeout
- type TLSConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCAPoolFromFiles ¶
func NewCertificate ¶
func NewCertificate(certData []byte, keyData []byte) (tls.Certificate, error)
func NewCertificateFromFiles ¶
func NewCertificateFromFiles(certFile string, keyFile string) (tls.Certificate, error)
Types ¶
type Request ¶
type Request struct {
Header *http.Header
Client *http.Client
// contains filtered or unexported fields
}
func (*Request) ReqCookies ¶
type Response ¶
type SetTimeout ¶
type SetTimeout int
Directories
¶
| Path | Synopsis |
|---|---|
|
* @Description : Blue Planet * @Author : serialt * @Email : tserialt@gmail.com * @Created Time : 2023-04-18 22:02:19 * @Last modified : 2023-10-11 20:12:16 * @FilePath : /req/example/main.go * @Other : * @ : * * *
|
* @Description : Blue Planet * @Author : serialt * @Email : tserialt@gmail.com * @Created Time : 2023-04-18 22:02:19 * @Last modified : 2023-10-11 20:12:16 * @FilePath : /req/example/main.go * @Other : * @ : * * * |
Click to show internal directories.
Click to hide internal directories.