Documentation
¶
Index ¶
- type HttpRspWarp
- func (h *HttpRspWarp) BadRequest(e error) *HttpRspWarp
- func (h *HttpRspWarp) Code(code int) *HttpRspWarp
- func (h *HttpRspWarp) Header(key, val string) *HttpRspWarp
- func (h *HttpRspWarp) Json(a any) *HttpRspWarp
- func (h *HttpRspWarp) ServerError(e error) *HttpRspWarp
- func (h *HttpRspWarp) Text(format string, a ...any) *HttpRspWarp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpRspWarp ¶
type HttpRspWarp struct {
W http.ResponseWriter
}
func HttpRsp ¶
func HttpRsp(w http.ResponseWriter) *HttpRspWarp
func (*HttpRspWarp) BadRequest ¶
func (h *HttpRspWarp) BadRequest(e error) *HttpRspWarp
func (*HttpRspWarp) Code ¶
func (h *HttpRspWarp) Code(code int) *HttpRspWarp
func (*HttpRspWarp) Header ¶
func (h *HttpRspWarp) Header(key, val string) *HttpRspWarp
func (*HttpRspWarp) Json ¶
func (h *HttpRspWarp) Json(a any) *HttpRspWarp
func (*HttpRspWarp) ServerError ¶
func (h *HttpRspWarp) ServerError(e error) *HttpRspWarp
func (*HttpRspWarp) Text ¶
func (h *HttpRspWarp) Text(format string, a ...any) *HttpRspWarp
Click to show internal directories.
Click to hide internal directories.