Documentation
¶
Index ¶
- type HttpStream
- func (hs *HttpStream) Close()
- func (hs *HttpStream) GetContentLen() int64
- func (hs *HttpStream) Len() uint32
- func (hs *HttpStream) Output(start, end uint32) []byte
- func (hs *HttpStream) SetFileDescriptor(f *os.File, start, length uint32)
- func (hs *HttpStream) SetRawHeader(h []byte)
- func (hs *HttpStream) UpdateLen()
- func (hs *HttpStream) Write(data []byte)
- func (hs *HttpStream) WriteString(data string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpStream ¶
type HttpStream struct {
// contains filtered or unexported fields
}
func NewFileStream ¶
func NewFileStream() *HttpStream
func (*HttpStream) Close ¶
func (hs *HttpStream) Close()
func (*HttpStream) GetContentLen ¶
func (hs *HttpStream) GetContentLen() int64
func (*HttpStream) Len ¶
func (hs *HttpStream) Len() uint32
func (*HttpStream) Output ¶
func (hs *HttpStream) Output(start, end uint32) []byte
func (*HttpStream) SetFileDescriptor ¶
func (hs *HttpStream) SetFileDescriptor(f *os.File, start, length uint32)
func (*HttpStream) SetRawHeader ¶
func (hs *HttpStream) SetRawHeader(h []byte)
func (*HttpStream) UpdateLen ¶
func (hs *HttpStream) UpdateLen()
func (*HttpStream) Write ¶
func (hs *HttpStream) Write(data []byte)
func (*HttpStream) WriteString ¶
func (hs *HttpStream) WriteString(data string)
Click to show internal directories.
Click to hide internal directories.