Documentation
¶
Index ¶
- type HTTPWriter
- func (this *HTTPWriter) GetPath() string
- func (this *HTTPWriter) HttpOnlyIs(methods ...string) bool
- func (this *HTTPWriter) NotFound()
- func (this *HTTPWriter) Release()
- func (this *HTTPWriter) SendHttpCode(code int)
- func (this *HTTPWriter) SendHttpRedirect(l string)
- func (this *HTTPWriter) SendHttpString(s string)
- func (this *HTTPWriter) SendJSAlert(args ...string)
- func (this *HTTPWriter) TemplateFileWrite(path string, data interface{}) (bool, error)
- func (this *HTTPWriter) TemplateWrite(content []byte, data interface{}, ct string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPWriter ¶
type HTTPWriter struct {
// contains filtered or unexported fields
}
func NewHTTPWriter ¶
func NewHTTPWriter(w http.ResponseWriter, r *http.Request) *HTTPWriter
func (*HTTPWriter) GetPath ¶
func (this *HTTPWriter) GetPath() string
func (*HTTPWriter) HttpOnlyIs ¶
func (this *HTTPWriter) HttpOnlyIs(methods ...string) bool
func (*HTTPWriter) NotFound ¶
func (this *HTTPWriter) NotFound()
func (*HTTPWriter) Release ¶
func (this *HTTPWriter) Release()
func (*HTTPWriter) SendHttpCode ¶
func (this *HTTPWriter) SendHttpCode(code int)
func (*HTTPWriter) SendHttpRedirect ¶
func (this *HTTPWriter) SendHttpRedirect(l string)
func (*HTTPWriter) SendHttpString ¶
func (this *HTTPWriter) SendHttpString(s string)
func (*HTTPWriter) SendJSAlert ¶
func (this *HTTPWriter) SendJSAlert(args ...string)
func (*HTTPWriter) TemplateFileWrite ¶
func (this *HTTPWriter) TemplateFileWrite(path string, data interface{}) (bool, error)
func (*HTTPWriter) TemplateWrite ¶
func (this *HTTPWriter) TemplateWrite(content []byte, data interface{}, ct string) (bool, error)
Click to show internal directories.
Click to hide internal directories.