Home | History | Annotate | Download | only in pycon2011
      1 ==========================
      2  Request Comparison Table
      3 ==========================
      4 
      5 b=WebBob
      6 z=Werkzeug
      7 x=both
      8 
      9 
     10 WEBOB NAME                         write  read  WERKZEUG NAME                      NOTES
     11 =================================  =====  ====  =================================  ===========================================
     12 
     13 Read-Write Properties                           Read-Write Properties
     14 +++++++++++++++++++++                           +++++++++++++++++++++
     15 
     16 content_type                                    content_type                       CommonRequestDescriptorMixin
     17 charset                                         charset "utf-8"
     18 headers                                         headers cached_property
     19 urlvars
     20 urlargs
     21 host                                            host cached_property
     22 body
     23 unicode_errors 'strict'                         encoding_errors 'ignore'
     24 decode_param_names F
     25 request_body_tempfile_limit 10*1024             max_content_length None            Not sure if these are the same
     26                                                 is_behind_proxy F
     27                                                 max_form_memory_size None
     28                                                 parameter_storage_class            ImmutableMultiDict
     29                                                 list_storage_class                 ImmutableList
     30                                                 dict_storage_class                 ImmutableTypeConversionDict
     31 environ                                         environ
     32                                                 populate_request T
     33                                                 shallow F
     34 
     35 
     36 Environ Getter Properties
     37 +++++++++++++++++++++++++
     38 
     39 body_file_raw
     40 scheme
     41 method                                          method
     42 http_version
     43 script_name                                     script_root cached_property
     44 path_info                                       ???path cached_property
     45 content_length                                  content_type                       CommonRequestDescriptorMixin
     46 remote_user                                     remote_user
     47 remote_addr                                     remote_addr
     48 query_string                                    query_string
     49 server_name                                     host (with port)
     50 server_port                                     host (with name)
     51 uscript_name
     52 upath_info
     53 is_body_seekable
     54 authorization                                   authorization cached_property
     55 pragma                                          pragma cached_property
     56 date                                            date                               CommonRequestDescriptorMixin
     57 max_forwards                                    max_forwards                       CommonRequestDescriptorMixin
     58 range
     59 if_range
     60 referer/referrer                                referrer                           CommonRequestDescriptorMixin
     61 user_agent                                      user_agent cached_property
     62                                                 input_stream
     63                                                 mimetype                           CommonRequestDescriptorMixin
     64 
     65 
     66 Read-Only Properties
     67 ++++++++++++++++++++
     68 
     69 host_url                                        host_url cached_property
     70 application_url                                 base_url cached_property        Not sure if same
     71 path_url                                        ???path cached_property
     72 path                                            ???path cached_property
     73 path_qs                                         ???path cached_property
     74 url                                             url cached_property
     75 is_xhr                                          is_xhr
     76 str_POST
     77 POST
     78 str_GET
     79 GET
     80 str_params
     81 params
     82 str_cookies
     83 cookies                                         cookies cached_property
     84                                                 url_charset
     85                                                 stream cached_property
     86                                                 args cached_property            Maybe maps to params
     87                                                 data cached_property
     88                                                 form cached_property
     89                                                 values cached_property          Maybe maps to params
     90                                                 files  cached_property
     91                                                 url_root cached_property
     92                                                 access_route cached_property
     93                                                 is_secure
     94                                                 is_multithread
     95                                                 is_multiprocess
     96                                                 is_run_once
     97 
     98 
     99 Accept Properties
    100 +++++++++++++++++
    101 
    102 accept                                          accept_mimetypes
    103 accept_charset                                  accept_charsets
    104 accept_encoding                                 accept_encodings
    105 accept_language                                 accept_languages
    106 
    107 Etag Properties
    108 +++++++++++++++
    109 
    110 cache_control                                   cache_control cached_property
    111 if_match                                        if_match cached_property
    112 if_none_match                                   if_none_match cached_property
    113 if_modified_since                               if_modified_since cached_property
    114 if_unmodified_since                             if_unmodified_since cached_property
    115 
    116 Methods
    117 ++++++
    118 
    119 relative_url
    120 path_info_pop
    121 path_info_peek
    122 copy
    123 copy_get
    124 make_body_seekable
    125 copy_body
    126 make_tempfile
    127 remove_conditional_headers
    128 as_string (__str__)
    129 call_application
    130 get_response
    131 
    132 Classmethods
    133 ++++++++++++
    134 
    135 from_string (classmethod)
    136 from_file
    137 blank
    138                                                 from_values
    139                                                 application
    140 
    141 Notes
    142 -----
    143 
    144  <mitsuhiko> mcdonc: script_root and path in werkzeug are not quite script_name and path_info in webob
    145 [17:51] <mitsuhiko> the behavior regarding slashes is different for easier url joining
    146