Documentation ¶
Index ¶
- Constants
- Variables
- func Do(client *http.Client, ctx context.Context, requestInput []byte, out io.Writer) (err error)
- func DoMultipartForm(client *http.Client, ctx context.Context, requestInput []byte, files []File, ...) (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 SetInputWSSubprotocol(input, wsSubProtocol []byte) []byte
- func SetUndefinedVariables(data []byte, undefinedVariables []string) ([]byte, error)
- func UndefinedVariables(data []byte) []string
- type File
- type ResponseContext
- type TraceHTTP
- type TraceHTTPRequest
- type TraceHTTPResponse
Constants ¶
View Source
const ( PATH = "path" URL = "url" URLENCODE_BODY = "url_encode_body" BASEURL = "base_url" METHOD = "method" BODY = "body" HEADER = "header" QUERYPARAMS = "query_params" USE_SSE = "use_sse" SSE_METHOD_POST = "sse_method_post" SCHEME = "scheme" HOST = "host" UNNULL_VARIABLES = "unnull_variables" UNDEFINED_VARIABLES = "undefined" FORWARDED_CLIENT_HEADER_NAMES = "forwarded_client_header_names" FORWARDED_CLIENT_HEADER_REGULAR_EXPRESSIONS = "forwarded_client_header_regular_expressions" TRACE = "__trace__" WsSubProtocol = "ws_sub_protocol" )
View Source
const ( ContentEncodingHeader = "Content-Encoding" AcceptEncodingHeader = "Accept-Encoding" AcceptHeader = "Accept" ContentTypeHeader = "Content-Type" EncodingGzip = "gzip" EncodingDeflate = "deflate" ContentTypeJSON = "application/json" )
Variables ¶
Functions ¶
func DoMultipartForm ¶
func GetSubscriptionInput ¶
func IsInputFlagSet ¶
func SetInputBody ¶
func SetInputBodyWithPath ¶
func SetInputFlag ¶
func SetInputHeader ¶
func SetInputHost ¶
func SetInputMethod ¶
func SetInputPath ¶
func SetInputQueryParams ¶
func SetInputScheme ¶
func SetInputURL ¶
func SetInputURLEncodeBody ¶
func SetInputWSSubprotocol ¶
func SetUndefinedVariables ¶
func UndefinedVariables ¶
Types ¶
type ResponseContext ¶
type ResponseContext struct {
StatusCode int
}
func InjectResponseContext ¶
func InjectResponseContext(ctx context.Context) (context.Context, *ResponseContext)
type TraceHTTP ¶
type TraceHTTP struct { Request TraceHTTPRequest `json:"request"` Response TraceHTTPResponse `json:"response"` }
type TraceHTTPRequest ¶
Click to show internal directories.
Click to hide internal directories.