MCPcopy Index your code
hub / github.com/mpolden/echoip / AsJSON

Method AsJSON

http/error.go:28–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (e *appError) AsJSON() *appError {
29 e.ContentType = jsonMediaType
30 return e
31}
32
33func (e *appError) WithMessage(message string) *appError {
34 e.Message = message

Callers 12

CLIHandlerMethod · 0.80
CLICountryHandlerMethod · 0.80
CLICountryISOHandlerMethod · 0.80
CLICityHandlerMethod · 0.80
CLICoordinatesHandlerMethod · 0.80
CLIASNHandlerMethod · 0.80
CLIASNOrgHandlerMethod · 0.80
JSONHandlerMethod · 0.80
PortHandlerMethod · 0.80
cacheResizeHandlerMethod · 0.80
cacheHandlerMethod · 0.80
NotFoundHandlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected