Documentation
¶
Index ¶
- type CLI
- type Client
- func (c *Client) Close() error
- func (c *Client) Delete(path string, body io.Reader) (*Response, error)
- func (c *Client) DeleteJSON(path string, body io.Reader) (*Response, error)
- func (c *Client) Get(path string) (*Response, error)
- func (c *Client) GetJSON(path string) (*Response, error)
- func (c *Client) Hot(path string) (*hot.Stream, error)
- func (c *Client) Patch(path string, body io.Reader) (*Response, error)
- func (c *Client) PatchJSON(path string, body io.Reader) (*Response, error)
- func (c *Client) Post(path string, body io.Reader) (*Response, error)
- func (c *Client) PostJSON(path string, body io.Reader) (*Response, error)
- func (c *Client) Ready(ctx context.Context) error
- func (c *Client) Request(req *http.Request) (*Response, error)
- func (c *Client) Stderr() string
- func (c *Client) Stdout() string
- type Response
- func (r *Response) Body() *bytes.Buffer
- func (r *Response) Diff(expected string) error
- func (r *Response) DiffHeaders(expected string) error
- func (r *Response) Dump() *bytes.Buffer
- func (r *Response) Header(key string) string
- func (r *Response) Headers() *bytes.Buffer
- func (r *Response) Query(selector string) (*goquery.Selection, error)
- func (r *Response) Status() int
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.9
type Client struct {
// contains filtered or unexported fields
}
Client for interacting with the running app
func (*Client) DeleteJSON ¶ added in v0.1.9
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) DiffHeaders ¶ added in v0.1.9
Click to show internal directories.
Click to hide internal directories.