Versions in this module Expand all Collapse all v0 v0.1.0 Nov 25, 2023 Changes in this version + const RequestSeparator + var ErrInvalidRequest = errors.New("invalid request") + func ResetEnvironment(ctx context.Context) + func WithEnvironment(ctx context.Context, env map[string]string) context.Context + func WithRequestRunner(ctx context.Context, runner RequestRunner) context.Context + func WithRuntime(ctx context.Context, rt *Runtime) context.Context + type Assertion struct + Message string + Success bool + type Header struct + Key string + Value string + type Headers []Header + type Request struct + Body string + Headers Headers + Method string + Name string + PostRequestScript string + PreRequestScript string + URL string + func ParseFromFile(path string) ([]Request, error) + func ParseRequests(input string) ([]Request, error) + func (r Request) DisplayName() string + func (r Request) Do(ctx context.Context) (*Response, error) + func (r Request) HttpText() string + func (r Request) String() string + type RequestRunner interface + Do func(req *http.Request) (*http.Response, error) + type Response struct + PostRequestAssertions []Assertion + PreRequestAssertions []Assertion + func (resp *Response) PrettyString() (string, error) + func (resp *Response) Raw() *http.Response + func (resp *Response) String() string + type Runtime struct