Documentation ¶
Index ¶
- func Optional(req *restful.Request, key, defaultVal string) string
- func ParseJsonBody(req *restful.Request, value interface{}) error
- func ParseQueryParams(req *restful.Request) map[string]string
- func Required(req *restful.Request, key string) (string, error)
- func RequiredInt(req *restful.Request, key string) (int, error)
- func WrirteNacosErrorResponse(data error, resp *restful.Response)
- func WrirteNacosResponse(data interface{}, resp *restful.Response)
- func WrirteNacosResponseWithCode(code int, data interface{}, resp *restful.Response)
- func WrirteSimpleResponse(data string, code int, resp *restful.Response)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseJsonBody ¶
ParseJsonBody parse http body as json object
func ParseQueryParams ¶
ParseQueryParams 解析并获取HTTP的query params
func WrirteNacosErrorResponse ¶
WrirteNacosErrorResponse .
func WrirteNacosResponse ¶
WrirteNacosResponse .
func WrirteNacosResponseWithCode ¶
WrirteNacosResponseWithCode .
Types ¶
Click to show internal directories.
Click to hide internal directories.