MCPcopy Create free account
hub / github.com/TimMcCool/scratchattach / of

Method of

scratchattach/utils/requests.py:33–44  ·  view source on GitHub ↗
(cls, name: str)

Source from the content-addressed store, hash-verified

31 TRACE = auto()
32 @classmethod
33 def of(cls, name: str) -> HTTPMethod:
34 member_map = {
35 "GET": cls.GET,
36 "POST": cls.POST,
37 "PUT": cls.PUT,
38 "DELETE": cls.DELETE,
39 "HEAD": cls.HEAD,
40 "OPTIONS": cls.OPTIONS,
41 "PATCH": cls.PATCH,
42 "TRACE": cls.TRACE
43 }
44 return member_map[name]
45
46class AnyHTTPResponse(ABC):
47 request_method: HTTPMethod

Callers 1

requestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected