MCPcopy Create free account
hub / github.com/cloudfoundry/multiapps-cli-plugin / getNonProtectedMethods

Function getNonProtectedMethods

commands/base_command.go:293–302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

291}
292
293func getNonProtectedMethods() map[string]struct{} {
294 nonProtectedMethods := make(map[string]struct{}, 4)
295
296 nonProtectedMethods[http.MethodGet] = struct{}{}
297 nonProtectedMethods[http.MethodHead] = struct{}{}
298 nonProtectedMethods[http.MethodTrace] = struct{}{}
299 nonProtectedMethods[http.MethodOptions] = struct{}{}
300
301 return nonProtectedMethods
302}
303
304func getTokenValue(tokenString string) string {
305 // TODO(ivan): check whether there are >1 elements

Callers 1

newTransportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected