package
1.4.3
Repository: https://github.com/hduhelp/go-zero.git
Documentation: pkg.go.dev

# Functions

Error writes err into w.
GetFormValues returns the form values.
GetRemoteAddr returns the peer address, supports X-Forward-For.
Ok writes HTTP 200 OK into w.
OkJson writes v into w with 200 OK.
Parse parses the request.
ParseForm parses the form request.
ParseHeader parses the request header and returns a map.
ParseHeaders parses the headers request.
ParseJsonBody parses the post request which contains json in body.
ParsePath parses the symbols reside in url path.
SetErrorHandler sets the error handler, which is called on calling Error.
WriteJson writes v as json string into w with code.

# Constants

CodeSignatureInvalidHeader means invalid header in signature.
CodeSignatureInvalidToken means invalid token in signature.
CodeSignaturePass means signature verification passed.
CodeSignatureWrongTime means wrong timestamp in signature.
ContentEncoding means Content-Encoding.
ContentSecurity means X-Content-Security.
ContentType means Content-Type.
CryptionType means cryption.
JsonContentType means application/json.
KeyField means key.
SecretField means secret.
TypeField means type.

# Interfaces

Router interface represents a http router that handles http requests.