MCPcopy Index your code
hub / github.com/kataras/iris / Title

Method Title

context/problem.go:143–145  ·  view source on GitHub ↗

Title sets the problem's title field. Example: "Your request parameters didn't validate." It is set to status Code text if missing, (e.g., "Not Found" for 404, and so on).

(title string)

Source from the content-addressed store, hash-verified

141// It is set to status Code text if missing,
142// (e.g., "Not Found" for 404, and so on).
143func (p Problem) Title(title string) Problem {
144 return p.Key("title", title)
145}
146
147// Status sets HTTP error code for problem's status field.
148// Example: 404

Callers 8

StatusMethod · 0.95
main.goFile · 0.80
readBodyFunction · 0.80
postUserFunction · 0.80
fireErrorWithProblemFunction · 0.80
newProductProblemFunction · 0.80
methodTitleFunction · 0.80
MarshalXMLMethod · 0.80

Calls 1

KeyMethod · 0.95

Tested by

no test coverage detected