httplog

package
v0.0.0-...-2828958 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGetDataToURL

func AddGetDataToURL(urlString string, data url.Values) string

AddGetDataToURL xxx

func HTTPGET

func HTTPGET(trace *mylog.TraceContext, urlString string, urlParams url.Values, msTimeout int,
	header http.Header) (*http.Response, []byte, error)

HTTPGET 带有日志信息日志信息

func HTTPJSON

func HTTPJSON(trace *mylog.TraceContext, urlString string, jsonContent string, msTimeout int, header http.Header) (*http.Response, []byte, error)

HTTPJSON 带有日志的 JSON 方法

func HTTPPOST

func HTTPPOST(trace *mylog.TraceContext, urlString string, urlParams url.Values, msTimeout int, header http.Header, contextType string) (*http.Response, []byte, error)

HTTPPOST 带有日志的 POST 方法

func Substr

func Substr(str string, start int64, end int64) string

Substr 截取字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL