Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPoolRender ¶
type BufferPoolRender struct { ContentType string ContentLength int64 Reader io.Reader Headers map[string]string }
BufferPoolRender contains the IO reader and its length, and custom ContentType and other headers.
func (BufferPoolRender) Render ¶
func (r BufferPoolRender) Render(w http.ResponseWriter) (err error)
Render (BufferPoolRender) writes data with custom ContentType and headers.
func (BufferPoolRender) WriteContentType ¶
func (r BufferPoolRender) WriteContentType(w http.ResponseWriter)
WriteContentType (BufferPoolRender) writes custom ContentType.
type ByteBufferPoolRender ¶
type ByteBufferPoolRender struct { ContentType string ContentLength int64 Reader io.Reader Headers map[string]string }
BufferPoolRender contains the IO reader and its length, and custom ContentType and other headers.
func (ByteBufferPoolRender) Render ¶
func (r ByteBufferPoolRender) Render(w http.ResponseWriter) (err error)
Render (BufferPoolRender) writes data with custom ContentType and headers.
func (ByteBufferPoolRender) WriteContentType ¶
func (r ByteBufferPoolRender) WriteContentType(w http.ResponseWriter)
WriteContentType (BufferPoolRender) writes custom ContentType.
Click to show internal directories.
Click to hide internal directories.