Documentation
¶
Index ¶
Constants ¶
View Source
const ( // http method HTTP_GET = "GET" HTTP_POST = "POST" HTTP_DELETE = "DELETE" // http default timeout HTTP_DEFAULT_TIMEOUT = 20 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func HttpReq ¶
func HttpReq(tHttpParams *HttpParams) ([]byte, error)
Types ¶
type HttpParams ¶
type HttpParams struct {
Method string `json:"Method"`
ReqUrl string `json:"ReqUrl"`
StrParams string `json:"StrParams"`
HeaderMap map[string]string `json:"HeaderMap"`
Timeout time.Duration `json:"Timeout"`
}
func HttpParamsUnmarshal ¶
func HttpParamsUnmarshal(data []byte) (*HttpParams, error)
Click to show internal directories.
Click to hide internal directories.