MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / newMethodFilter

Function newMethodFilter

strategy-filter/method.go:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func newMethodFilter() *methodFilter {
19 return &methodFilter{
20 name: "method",
21 title: "api method",
22 typ: TypeStatic,
23 options: []string{HttpALL, http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete, http.MethodPatch, http.MethodHead, http.MethodOptions},
24 }
25}
26
27func (m *methodFilter) Name() string {
28 return m.name

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected