Documentation ¶
Index ¶
- func GetFileType(name string) string
- func GetKBSize(mSize uint32) uint32
- type ResponseWriterWrapper
- func (w *ResponseWriterWrapper) Body() []byte
- func (w *ResponseWriterWrapper) Code() int
- func (w *ResponseWriterWrapper) Header() http.Header
- func (w *ResponseWriterWrapper) SetBody(body *bytes.Buffer)
- func (w *ResponseWriterWrapper) SetCode(code int)
- func (w *ResponseWriterWrapper) Write(b []byte) (int, error)
- func (w *ResponseWriterWrapper) WriteHeader(statusCode int)
- func (w *ResponseWriterWrapper) WriteString(s string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ResponseWriterWrapper ¶
type ResponseWriterWrapper struct {
// contains filtered or unexported fields
}
func NewWriter ¶
func NewWriter() *ResponseWriterWrapper
func (*ResponseWriterWrapper) Body ¶
func (w *ResponseWriterWrapper) Body() []byte
func (*ResponseWriterWrapper) Code ¶
func (w *ResponseWriterWrapper) Code() int
func (*ResponseWriterWrapper) Header ¶
func (w *ResponseWriterWrapper) Header() http.Header
func (*ResponseWriterWrapper) SetBody ¶
func (w *ResponseWriterWrapper) SetBody(body *bytes.Buffer)
func (*ResponseWriterWrapper) SetCode ¶
func (w *ResponseWriterWrapper) SetCode(code int)
func (*ResponseWriterWrapper) WriteHeader ¶
func (w *ResponseWriterWrapper) WriteHeader(statusCode int)
func (*ResponseWriterWrapper) WriteString ¶
func (w *ResponseWriterWrapper) WriteString(s string) (int, error)
Click to show internal directories.
Click to hide internal directories.