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) DeleteRequest(path string, body io.Reader) (*http.Request, error)
- func (c *Client) Do(req *http.Request) (*Response, error)
- func (c *Client) Get(path string) (*Response, error)
- func (c *Client) GetJSON(path string) (*Response, error)
- func (c *Client) GetRequest(path string) (*http.Request, 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) PatchRequest(path string, body io.Reader) (*http.Request, 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) PostRequest(path string, body io.Reader) (*http.Request, error)
- func (c *Client) Ready(ctx context.Context) error
- func (c *Client) Stderr() string
- func (c *Client) Stdout() string
- func (c *Client) Wait() error
- 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 ¶
type Client struct {
// contains filtered or unexported fields
}
Client for interacting with the running app
func (*Client) DeleteJSON ¶
func (*Client) DeleteRequest ¶
func (*Client) PatchRequest ¶
func (*Client) PostRequest ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) DiffHeaders ¶
Click to show internal directories.
Click to hide internal directories.