Documentation ¶
Index ¶
- Constants
- type Chunk
- type HttpV2Client
- func (c *HttpV2Client) CheckConnection() error
- func (c *HttpV2Client) Close() error
- func (c *HttpV2Client) Connect() error
- func (c *HttpV2Client) GetReceivedChunkChannel() chan Chunk
- func (c *HttpV2Client) GetReceivedHttpHeaderChannel() chan string
- func (c *HttpV2Client) Receive()
- func (c *HttpV2Client) SendHeaders(headers []string) error
- func (c *HttpV2Client) SendMultiPart(parameters []string, body []byte) error
- func (c *HttpV2Client) SendMultiPartEnd() error
- type Option
Constants ¶
View Source
const CR = '\r'
View Source
const CRLF = "\r\n"
View Source
const LF = '\n'
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type HttpV2Client ¶
type HttpV2Client struct { Protocol string Host string Port int Path string Timeout time.Duration TcpConn net.Conn // contains filtered or unexported fields }
func NewHttpV2Client ¶
func NewHttpV2Client(Host string, Port int, opts ...Option) *HttpV2Client
func (*HttpV2Client) CheckConnection ¶
func (c *HttpV2Client) CheckConnection() error
func (*HttpV2Client) Close ¶
func (c *HttpV2Client) Close() error
func (*HttpV2Client) Connect ¶
func (c *HttpV2Client) Connect() error
func (*HttpV2Client) GetReceivedChunkChannel ¶
func (c *HttpV2Client) GetReceivedChunkChannel() chan Chunk
func (*HttpV2Client) GetReceivedHttpHeaderChannel ¶
func (c *HttpV2Client) GetReceivedHttpHeaderChannel() chan string
func (*HttpV2Client) Receive ¶
func (c *HttpV2Client) Receive()
func (*HttpV2Client) SendHeaders ¶
func (c *HttpV2Client) SendHeaders(headers []string) error
func (*HttpV2Client) SendMultiPart ¶
func (c *HttpV2Client) SendMultiPart(parameters []string, body []byte) error
func (*HttpV2Client) SendMultiPartEnd ¶
func (c *HttpV2Client) SendMultiPartEnd() error
Click to show internal directories.
Click to hide internal directories.