• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1===========================
2 Response Comparison Table
3===========================
4
5b=WebBob
6z=Werkzeug
7x=both
8 =neither
9
10WEBOB NAME                         write  read  WERKZEUG NAME                      NOTES
11=================================  =====  ====  =================================  ===========================================
12default_content_type                 x      x   default_mimetype                   wb default: "text/html", wz: "text/plain"
13default_charset                      b      b  	                                   wz uses class var default for charset
14charset                              x      x   charset
15unicode_errors                       b      b
16default_conditional_response         b      b
17from_file() (classmethod)            b      b
18copy                                 b      b
19status (string)                      x      x   status
20status_code                          x      x   status_code
21                                            z   default_status
22headers                              b      b
23body                                 b      b
24unicode_body                         x      x   data
25body_file                                   b                                      File-like obj returned is writeable
26app_iter                             b      x   get_app_iter()
27                                            z   iter_encoded()
28allow                                b      x   allow
29vary                                 b      x   vary
30content_type                         x      x   content_type
31content_type_params                  x      x   mime_type_params
32                                     z      z   mime_type                          content_type str wo parameters
33content_length                       x      x   content_length
34content_encoding                     x      x   content_encoding
35content_language                     b      x   content_language
36content_location                     x      x   content_location
37content_md5                          x      x   content_md5
38content_disposition                  b      b
39accept_ranges                        b      b
40content_range                        b      b
41date                                 x      x   date
42expires                              x      x   expires
43last_modified                        x      x   last_modified
44cache_control                        b      z   cache_control
45cache_expires (dwim)                 b      b
46conditional_response (bool)          b      x   make_conditional()
47etag                                 b      x   add_etag()
48etag                                 b      x   get_etag()
49etag                                 b      x   set_etag()
50                                            z   freeze()
51location                             x      x   location
52pragma                               b      b
53age                                  x      x   age
54retry_after                          x      x   retry_after
55server                               b      b
56www_authenticate                     b      z   www_authenticate
57                                     x      x   date
58retry_after                          x      x   retry_after
59set_cookie()                                    set_cookie()
60delete_cookie()                                 delete_cookie()
61unset_cookie()
62                                            z   is_streamed
63                                            z   is_sequence
64body_file                                   x   stream
65                                                close()
66                                                get_wsgi_headers()
67                                                get_wsgi_response()
68__call__()                                      __call__()
69