MCPcopy Create free account
hub / github.com/cronitorio/cronitor-cli / SetDefault

Method SetDefault

internal/testutil/mock_api.go:105–108  ·  view source on GitHub ↗

SetDefault sets the default response for unmatched routes.

(status int, body string)

Source from the content-addressed store, hash-verified

103
104// SetDefault sets the default response for unmatched routes.
105func (m *MockAPI) SetDefault(status int, body string) {
106 m.defaultStatus = status
107 m.defaultBody = body
108}
109
110// LastRequest returns the most recent recorded request.
111func (m *MockAPI) LastRequest() RecordedRequest {

Calls

no outgoing calls