Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LenReader ¶
type LenReader interface {
Len() int
}
LenReader is an interface implemented by many in-memory io.Reader's. Used for automatically sending the right Content-Length header when possible.
type ReaderFunc ¶
type RepeatableReader ¶
type RepeatableReader struct {
// contains filtered or unexported fields
}
可重复读取的 Reader, 可用于 http 中再次发送请求等.
func NewRepeatableReader ¶
func NewRepeatableReader(reader io.Reader) *RepeatableReader
func (*RepeatableReader) Close ¶
func (rr *RepeatableReader) Close() error
func (*RepeatableReader) Reset ¶
func (rr *RepeatableReader) Reset() error
Click to show internal directories.
Click to hide internal directories.