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

Method Type

context/problem.go:135–137  ·  view source on GitHub ↗

Type URI SHOULD resolve to HTML [W3C.REC-html5-20141028] documentation that explains how to resolve the problem. Example: "https://example.net/validation-error" Empty URI or "about:blank", when used as a problem type, indicates that the problem has no additional semantics beyond that of the HTTP st

(uri string)

Source from the content-addressed store, hash-verified

133//
134// Relative paths are also valid when writing this Problem to an Iris Context.
135func (p Problem) Type(uri string) Problem {
136 return p.Key("type", uri)
137}
138
139// Title sets the problem's title field.
140// Example: "Your request parameters didn't validate."

Callers 15

updateURIsToAbsMethod · 0.95
mainFunction · 0.80
wrapValidationErrorsFunction · 0.80
postUserFunction · 0.80
fireErrorWithProblemFunction · 0.80
newProductProblemFunction · 0.80
hasRequiredFunction · 0.80
getBindingsForFuncFunction · 0.80
getBindingsForStructFunction · 0.80
makeHandlerFunction · 0.80
fromBuiltinValueFunction · 0.80
fromStructValueFunction · 0.80

Calls 1

KeyMethod · 0.95

Tested by 1

HandleHTTPErrorMethod · 0.64