From 12cf076118570eebbff08c6b3090e0d4798447a1 Mon Sep 17 00:00:00 2001 From: cyfraeviolae Date: Wed, 3 Apr 2024 03:17:55 -0400 Subject: no venv --- .../lib/python3.11/site-packages/litestar/enums.py | 90 ---------------------- 1 file changed, 90 deletions(-) delete mode 100644 venv/lib/python3.11/site-packages/litestar/enums.py (limited to 'venv/lib/python3.11/site-packages/litestar/enums.py') diff --git a/venv/lib/python3.11/site-packages/litestar/enums.py b/venv/lib/python3.11/site-packages/litestar/enums.py deleted file mode 100644 index a660228..0000000 --- a/venv/lib/python3.11/site-packages/litestar/enums.py +++ /dev/null @@ -1,90 +0,0 @@ -from enum import Enum - -__all__ = ( - "CompressionEncoding", - "HttpMethod", - "MediaType", - "OpenAPIMediaType", - "ParamType", - "RequestEncodingType", - "ScopeType", -) - - -class HttpMethod(str, Enum): - """An Enum for HTTP methods.""" - - DELETE = "DELETE" - GET = "GET" - HEAD = "HEAD" - OPTIONS = "OPTIONS" - PATCH = "PATCH" - POST = "POST" - PUT = "PUT" - - -class MediaType(str, Enum): - """An Enum for ``Content-Type`` header values.""" - - JSON = "application/json" - MESSAGEPACK = "application/x-msgpack" - HTML = "text/html" - TEXT = "text/plain" - CSS = "text/css" - XML = "application/xml" - - -class OpenAPIMediaType(str, Enum): - """An Enum for OpenAPI specific response ``Content-Type`` header values.""" - - OPENAPI_YAML = "application/vnd.oai.openapi" - OPENAPI_JSON = "application/vnd.oai.openapi+json" - - -class RequestEncodingType(str, Enum): - """An Enum for request ``Content-Type`` header values designating encoding formats.""" - - JSON = "application/json" - MESSAGEPACK = "application/x-msgpack" - MULTI_PART = "multipart/form-data" - URL_ENCODED = "application/x-www-form-urlencoded" - - -class ScopeType(str, Enum): - """An Enum for the 'http' key stored under Scope. - - Notes: - - ``asgi`` is used by Litestar internally and is not part of the specification. - """ - - HTTP = "http" - WEBSOCKET = "websocket" - ASGI = "asgi" - - -class ParamType(str, Enum): - """An Enum for the types of parameters a request can receive.""" - - PATH = "path" - QUERY = "query" - COOKIE = "cookie" - HEADER = "header" - - -class CompressionEncoding(str, Enum): - """An Enum for supported compression encodings.""" - - GZIP = "gzip" - BROTLI = "br" - - -class ASGIExtension(str, Enum): - """ASGI extension keys: https://asgi.readthedocs.io/en/latest/extensions.html""" - - WS_DENIAL = "websocket.http.response" - SERVER_PUSH = "http.response.push" - ZERO_COPY_SEND_EXTENSION = "http.response.zerocopysend" - PATH_SEND = "http.response.pathsend" - TLS = "tls" - EARLY_HINTS = "http.response.early_hint" - HTTP_TRAILERS = "http.response.trailers" -- cgit v1.2.3