kittycad.models.method

Classes

Method(value)

The Request Method (VERB)

class kittycad.models.method.Method(value)[source][source]

The Request Method (VERB)

This type also contains constants for a number of common HTTP methods such as GET, POST, etc.

Currently includes 8 variants representing the 8 methods defined in [RFC 7230](https://tools.ietf.org/html/rfc7231#section-4.1), plus PATCH, and an Extension variant for all extensions.

CONNECT = 'CONNECT'[source]

//tools.ietf.org/html/rfc5789).

Type:

# The PATCH method as defined in [RFC 5789](https

DELETE = 'DELETE'[source]

//tools.ietf.org/html/rfc7231#section-4.3.2).

Type:

# The HEAD method as defined in [RFC 7231](https

EXTENSION = 'EXTENSION'[source]
GET = 'GET'[source]

//tools.ietf.org/html/rfc7231#section-4.3.1).

Type:

# The POST method as defined in [RFC 7231](https

HEAD = 'HEAD'[source]

//tools.ietf.org/html/rfc7231#section-4.3).

Type:

# The TRACE method as defined in [RFC 7231](https

OPTIONS = 'OPTIONS'[source]

//tools.ietf.org/html/rfc7231#section-4.3.1).

Type:

# The GET method as defined in [RFC 7231](https

PATCH = 'PATCH'[source]

# A catch all.

POST = 'POST'[source]

//tools.ietf.org/html/rfc7231#section-4.3.1).

Type:

# The PUT method as defined in [RFC 7231](https

PUT = 'PUT'[source]

//tools.ietf.org/html/rfc7231#section-4.3.5).

Type:

# The DELETE method as defined in [RFC 7231](https

TRACE = 'TRACE'[source]

//tools.ietf.org/html/rfc7231#section-4.3.6).

Type:

# The CONNECT method as defined in [RFC 7231](https

__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.method', '__doc__': 'The Request Method (VERB)\n\n    This type also contains constants for a number of common HTTP methods such as GET, POST, etc.\n\n    Currently includes 8 variants representing the 8 methods defined in [RFC 7230](https://tools.ietf.org/html/rfc7231#section-4.1), plus PATCH, and an Extension variant for all extensions.\n    ', '__str__': <function Method.__str__>, '__dict__': <attribute '__dict__' of 'Method' objects>, '__weakref__': <attribute '__weakref__' of 'Method' objects>, '_member_names_': ['OPTIONS', 'GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'TRACE', 'CONNECT', 'PATCH', 'EXTENSION'], '_member_map_': {'OPTIONS': <Method.OPTIONS: 'OPTIONS'>, 'GET': <Method.GET: 'GET'>, 'POST': <Method.POST: 'POST'>, 'PUT': <Method.PUT: 'PUT'>, 'DELETE': <Method.DELETE: 'DELETE'>, 'HEAD': <Method.HEAD: 'HEAD'>, 'TRACE': <Method.TRACE: 'TRACE'>, 'CONNECT': <Method.CONNECT: 'CONNECT'>, 'PATCH': <Method.PATCH: 'PATCH'>, 'EXTENSION': <Method.EXTENSION: 'EXTENSION'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'OPTIONS': <Method.OPTIONS: 'OPTIONS'>, 'GET': <Method.GET: 'GET'>, 'POST': <Method.POST: 'POST'>, 'PUT': <Method.PUT: 'PUT'>, 'DELETE': <Method.DELETE: 'DELETE'>, 'HEAD': <Method.HEAD: 'HEAD'>, 'TRACE': <Method.TRACE: 'TRACE'>, 'CONNECT': <Method.CONNECT: 'CONNECT'>, 'PATCH': <Method.PATCH: 'PATCH'>, 'EXTENSION': <Method.EXTENSION: 'EXTENSION'>}, 'OPTIONS': <Method.OPTIONS: 'OPTIONS'>, 'GET': <Method.GET: 'GET'>, 'POST': <Method.POST: 'POST'>, 'PUT': <Method.PUT: 'PUT'>, 'DELETE': <Method.DELETE: 'DELETE'>, 'HEAD': <Method.HEAD: 'HEAD'>, 'TRACE': <Method.TRACE: 'TRACE'>, 'CONNECT': <Method.CONNECT: 'CONNECT'>, 'PATCH': <Method.PATCH: 'PATCH'>, 'EXTENSION': <Method.EXTENSION: 'EXTENSION'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.method'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'CONNECT': Method.CONNECT, 'DELETE': Method.DELETE, 'EXTENSION': Method.EXTENSION, 'GET': Method.GET, 'HEAD': Method.HEAD, 'OPTIONS': Method.OPTIONS, 'PATCH': Method.PATCH, 'POST': Method.POST, 'PUT': Method.PUT, 'TRACE': Method.TRACE}[source]
_member_names_ = ['OPTIONS', 'GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'TRACE', 'CONNECT', 'PATCH', 'EXTENSION'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'CONNECT': Method.CONNECT, 'DELETE': Method.DELETE, 'EXTENSION': Method.EXTENSION, 'GET': Method.GET, 'HEAD': Method.HEAD, 'OPTIONS': Method.OPTIONS, 'PATCH': Method.PATCH, 'POST': Method.POST, 'PUT': Method.PUT, 'TRACE': Method.TRACE}[source]