Versions in this module Expand all Collapse all v2 v2.0.1 Jan 7, 2024 Changes in this version + const AcceptEncodingHeader + const AcceptHeader + const BASEURL + const BODY + const ContentEncodingHeader + const ContentTypeHeader + const ContentTypeJSON + const EncodingDeflate + const EncodingGzip + const FORWARDED_CLIENT_HEADER_NAMES + const FORWARDED_CLIENT_HEADER_REGULAR_EXPRESSIONS + const HEADER + const HOST + const METHOD + const PATH + const QUERYPARAMS + const SCHEME + const SSE_METHOD_POST + const TRACE + const UNDEFINED_VARIABLES + const UNNULL_VARIABLES + const URL + const URLENCODE_BODY + const USE_SSE + var DefaultNetHttpClient = &http.Client + var ErrNonOkResponse = errors.New("server returned non 200 OK response") + func Do(client *http.Client, ctx context.Context, requestInput []byte, out io.Writer) (err error) + func GetSubscriptionInput(input []byte) (url, header, body []byte) + func IsInputFlagSet(input []byte, flagName string) bool + func SetForwardedClientHeaderNames(input, headers []byte) []byte + func SetForwardedClientHeaderRegularExpressions(input, headers []byte) []byte + func SetInputBody(input, body []byte) []byte + func SetInputBodyWithPath(input, body []byte, path string) []byte + func SetInputFlag(input []byte, flagName string) []byte + func SetInputHeader(input, headers []byte) []byte + func SetInputHost(input, host []byte) []byte + func SetInputMethod(input, method []byte) []byte + func SetInputPath(input, path []byte) []byte + func SetInputQueryParams(input, queryParams []byte) []byte + func SetInputScheme(input, scheme []byte) []byte + func SetInputURL(input, url []byte) []byte + func SetInputURLEncodeBody(input []byte, urlEncodeBody bool) []byte + func SetUndefinedVariables(data []byte, undefinedVariables []string) ([]byte, error) + func UndefinedVariables(data []byte) []string + type TraceHTTP struct + Request TraceHTTPRequest + Response TraceHTTPResponse + type TraceHTTPRequest struct + Headers http.Header + Method string + URL string + type TraceHTTPResponse struct + BodySize int + Headers http.Header + Status string + StatusCode int