MCPcopy
hub / github.com/labstack/echo / request

Function request

echo_test.go:1268–1273  ·  view source on GitHub ↗
(method, path string, e *Echo)

Source from the content-addressed store, hash-verified

1266}
1267
1268func request(method, path string, e *Echo) (int, string) {
1269 req := httptest.NewRequest(method, path, nil)
1270 rec := httptest.NewRecorder()
1271 e.ServeHTTP(rec, req)
1272 return rec.Code, rec.Body.String()
1273}
1274
1275type customError struct {
1276 Code int

Calls 2

ServeHTTPMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…