MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / isWriteMethod

Function isWriteMethod

internal/server/server.go:3267–3273  ·  view source on GitHub ↗
(m string)

Source from the content-addressed store, hash-verified

3265}
3266
3267func isWriteMethod(m string) bool {
3268 switch m {
3269 case http.MethodGet, http.MethodHead, http.MethodOptions:
3270 return false
3271 }
3272 return true
3273}
3274
3275// nulRefusalReason classifies the store's NUL refusal and returns the sentence
3276// a caller should be given.

Callers 1

writeStoreErrorBusyAsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected