render

package
v2.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL