Plain is headed towards 1.0! Subscribe for development updates →

HTTP

 1from plain.http.cookie import parse_cookie
 2from plain.http.request import (
 3    HttpHeaders,
 4    HttpRequest,
 5    QueryDict,
 6    RawPostDataException,
 7    UnreadablePostError,
 8)
 9from plain.http.response import (
10    BadHeaderError,
11    FileResponse,
12    Http404,
13    JsonResponse,
14    Response,
15    ResponseBadRequest,
16    ResponseBase,
17    ResponseForbidden,
18    ResponseGone,
19    ResponseNotAllowed,
20    ResponseNotFound,
21    ResponseNotModified,
22    ResponsePermanentRedirect,
23    ResponseRedirect,
24    ResponseServerError,
25    StreamingResponse,
26)
27
28__all__ = [
29    "parse_cookie",
30    "HttpHeaders",
31    "HttpRequest",
32    "QueryDict",
33    "RawPostDataException",
34    "UnreadablePostError",
35    "Response",
36    "ResponseBase",
37    "StreamingResponse",
38    "ResponseRedirect",
39    "ResponsePermanentRedirect",
40    "ResponseNotModified",
41    "ResponseBadRequest",
42    "ResponseForbidden",
43    "ResponseNotFound",
44    "ResponseNotAllowed",
45    "ResponseGone",
46    "ResponseServerError",
47    "Http404",
48    "BadHeaderError",
49    "JsonResponse",
50    "FileResponse",
51]