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