Documentation
¶
Index ¶
- Constants
- func NewParamStream(params []FastCGIParam) io.Reader
- func Write14Len(wr byteWriter, length int) error
- type Dialer
- type DialerFunc
- type FastCGIConn
- func (c *FastCGIConn) Close() error
- func (c *FastCGIConn) Discard(n int) error
- func (c *FastCGIConn) Do(stdin io.Reader, params io.Reader) (*FastCGIResponse, error)
- func (c *FastCGIConn) ExpectRecord(typ FastCGIRecordType) (rec *FastCGIRecord, err error)
- func (c *FastCGIConn) Flush() error
- func (c *FastCGIConn) Read(p []byte) (int, error)
- func (c *FastCGIConn) ReadRecord() (*FastCGIRecord, error)
- func (c *FastCGIConn) Write(p []byte) (int, error)
- func (c *FastCGIConn) Write14Len(length int) error
- func (c *FastCGIConn) WriteByte(b byte) error
- func (c *FastCGIConn) WriteRecord(typ FastCGIRecordType, data []byte) error
- func (c *FastCGIConn) WriteStream(typ FastCGIRecordType, r io.Reader, bufsize int) error
- func (c *FastCGIConn) WriteUint16(n int) error
- type FastCGIParam
- type FastCGIRecord
- type FastCGIRecordType
- type FastCGIResponse
- type RoundTripper
Constants ¶
View Source
const ( RecBeginRequest FastCGIRecordType = 1 RecAbortRequest = 2 RecEndRequest = 3 RecParams = 4 RecStdin = 5 RecStdout = 6 RecStderr = 7 )
View Source
const FcgiFlagKeepConn byte = 1
View Source
const FcgiRoleResponder byte = 1
only the lower byte of the role
Variables ¶
This section is empty.
Functions ¶
func NewParamStream ¶
func NewParamStream(params []FastCGIParam) io.Reader
func Write14Len ¶
Types ¶
type DialerFunc ¶
type FastCGIConn ¶
type FastCGIConn struct {
// contains filtered or unexported fields
}
func NewFastCGIConn ¶
func NewFastCGIConn(nc net.Conn) *FastCGIConn
func (*FastCGIConn) Close ¶
func (c *FastCGIConn) Close() error
func (*FastCGIConn) Discard ¶
func (c *FastCGIConn) Discard(n int) error
func (*FastCGIConn) Do ¶
func (c *FastCGIConn) Do(stdin io.Reader, params io.Reader) (*FastCGIResponse, error)
func (*FastCGIConn) ExpectRecord ¶
func (c *FastCGIConn) ExpectRecord(typ FastCGIRecordType) (rec *FastCGIRecord, err error)
func (*FastCGIConn) Flush ¶
func (c *FastCGIConn) Flush() error
func (*FastCGIConn) ReadRecord ¶
func (c *FastCGIConn) ReadRecord() (*FastCGIRecord, error)
func (*FastCGIConn) Write14Len ¶
func (c *FastCGIConn) Write14Len(length int) error
func (*FastCGIConn) WriteByte ¶
func (c *FastCGIConn) WriteByte(b byte) error
func (*FastCGIConn) WriteRecord ¶
func (c *FastCGIConn) WriteRecord(typ FastCGIRecordType, data []byte) error
func (*FastCGIConn) WriteStream ¶
func (c *FastCGIConn) WriteStream(typ FastCGIRecordType, r io.Reader, bufsize int) error
func (*FastCGIConn) WriteUint16 ¶
func (c *FastCGIConn) WriteUint16(n int) error
type FastCGIParam ¶
type FastCGIRecord ¶
type FastCGIRecord struct { Type FastCGIRecordType Payload []byte }
type FastCGIRecordType ¶
type FastCGIRecordType byte
type RoundTripper ¶
type RoundTripper struct { http.RoundTripper // contains filtered or unexported fields }
func NewRoundTripper ¶
func NewRoundTripper(dialer Dialer) *RoundTripper
Click to show internal directories.
Click to hide internal directories.