Skip to main content
https://travis-ci.org/Pylons/webob.png?branch=master Documentation Status

WebOb provides objects for HTTP requests and responses. Specifically it does this by wrapping the WSGI request environment and response status/headers/app_iter(body).

The request and response objects provide many conveniences for parsing HTTP request and forming HTTP responses. Both objects are read/write: as a result, WebOb is also a nice way to create HTTP requests and parse HTTP responses.

Support and Documentation

See the WebOb Documentation website to view documentation, report bugs, and obtain support.

License

WebOb is offered under the MIT-license.

Authors

WebOb was authored by Ian Bicking and is currently maintained by the Pylons Project and a team of contributors.

1.5.0 (2015-10-11)

Bug Fixes

  • The cookie API functions will now make sure that max_age is an integer or an string that can convert to an integer. Previously passing in max_age=’test’ would have silently done the wrong thing.

1.5.0b0 (2015-09-06)

Bug Fixes

Features

1.5.0a1 (2015-07-30)

Backwards Incompatibilities

  • Response.set_cookie renamed the only required parameter from “key” to “name”. The code will now still accept “key” as a keyword argument, and will issue a DeprecationWarning until WebOb 1.7.

  • The status attribute of a Response object no longer takes a string like None None and allows that to be set as the status. It now has to at least match the pattern of <integer status code> <explenation of status code>. Invalid status strings will now raise a ValueError.

1.5.0a0 (2015-07-25)

Backwards Incompatibilities

  • Morsel will no longer accept a cookie value that does not meet RFC6265’s cookie-octet specification. Upon calling Morsel.serialize a warning will be issued, in the future this will raise a ValueError, please update your cookie handling code. See https://github.com/Pylons/webob/pull/172

    The cookie-octet specification in RFC6265 states the following characters are valid in a cookie value:

    Hex Range

    Actual Characters

    [0x21 ]

    !

    [0x25-0x2B]

    #$%&'()*+

    [0x2D-0x3A]

    -./0123456789:

    [0x3C-0x5B]

    <=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[

    [0x5D-0x7E]

    ]^_`abcdefghijklmnopqrstuvwxyz{|}~

    RFC6265 suggests using base 64 to serialize data before storing data in a cookie.

    Cookies that meet the RFC6265 standard will no longer be quoted, as this is unnecessary. This is a no-op as far as browsers and cookie storage is concerned.

  • Response.set_cookie now uses the internal make_cookie API, which will issue warnings if cookies are set with invalid bytes. See https://github.com/Pylons/webob/pull/172

Features

  • Add support for some new caching headers, stale-while-revalidate and stale-if-error that can be used by reverse proxies to cache stale responses temporarily if the backend disappears. From RFC5861. See https://github.com/Pylons/webob/pull/189

Bug Fixes

Documentation Changes

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WebOb-1.5.0.tar.gz (186.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

WebOb-1.5.0-py2.py3-none-any.whl (79.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file WebOb-1.5.0.tar.gz.

File metadata

  • Download URL: WebOb-1.5.0.tar.gz
  • Upload date:
  • Size: 186.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for WebOb-1.5.0.tar.gz
Algorithm Hash digest
SHA256 8e90cca008c0189fe64d06281d50d9510c1dde4147bdf4bc81b666020ce31350
MD5 dff7f401d9a7fac47b160c36a6d62e63
BLAKE2b-256 1278f48cd09f51ef3a87c282415c37100c4f4ac467bba45ac3667c332f8e8941

See more details on using hashes here.

File details

Details for the file WebOb-1.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for WebOb-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 994aa24535e669cfa4069189b187f71bb7f52278815768dab7430a9f1e525714
MD5 22eefc74335a0e40e2b320c94b8956ac
BLAKE2b-256 baf4a38f681a2e9c58af87cfbdfd3c6e33d5236953dc0602115ace85e5c4a873

See more details on using hashes here.

Release history Release notifications | RSS feed

1.8.11

2 files

1.8.10

2 files

1.8.9

2 files

1.8.8

2 files

1.8.7

2 files

1.8.6

2 files

1.8.5

2 files

1.8.4

2 files

1.8.3

2 files

1.8.2

2 files

1.8.1

2 files

1.8.0

2 files

1.7.4

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5.1

2 files

This release

1.5.0 This release

2 files

1.4.2

2 files

1.4.1

1 file

1.4

1 file

1.3.1

1 file

1.3

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2

1 file

1.1.1

1 file

1.1

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

2 files

1.0.2

1 file

1.0.1

1 file

1.0

1 file

0.9.8

1 file

0.9.7.1

1 file

0.9.7

1 file

0.9.6.1

1 file

0.9.6

1 file

0.9.5

1 file

0.9.4

1 file

0.9.3

1 file

0.9.2

1 file

0.9.1

3 files

0.9

3 files

0.8.5

3 files

0.8.4

3 files

0.8.3

3 files

0.8.2

3 files

0.8.1

2 files

0.8

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page