Documentation
¶
Index ¶
- Constants
- Variables
- func ReadBody(resp *http.Response) ([]byte, error)
- func ReadJSON(resp *http.Response, out any) error
- type Client
- func (c *Client) Close() error
- func (c *Client) DoRequest(ctx context.Context, params map[string]string, body io.Reader) (*http.Response, error)
- func (c *Client) Get(ctx context.Context, params map[string]string) (*http.Response, error)
- func (c *Client) Post(ctx context.Context, params map[string]string, body io.Reader, ...) (*http.Response, error)
Constants ¶
View Source
const (
FCGI_HEADER_LEN = 8
)
Variables ¶
View Source
var ( ErrClientClosed = errors.New("fcgx: client closed") ErrTimeout = errors.New("fcgx: timeout") ErrContextCancelled = errors.New("fcgx: context cancelled") ErrUnexpectedEOF = errors.New("fcgx: unexpected EOF") ErrInvalidResponse = errors.New("fcgx: invalid response") ErrPHPFPM = errors.New("fcgx: php-fpm error") ErrConnect = errors.New("fcgx: connect error") ErrWrite = errors.New("fcgx: write error") ErrRead = errors.New("fcgx: read error") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DialContext ¶
DialContext establishes a connection to the FastCGI server at the specified network address with the given context.
Click to show internal directories.
Click to hide internal directories.