Skip to content

v9.3.0

Choose a tag to compare

@kennethreitz kennethreitz released this 09 Nov 15:37
· 3 commits to main since this release

[v9.3.0] - 2026-11-09

A minor release: build URLs from the request, queue one-shot flash messages,
append RFC 8288 Link headers, and set CHIPS partitioned cookies on every
supported Python.

Added

  • req.url_for(endpoint, **params) builds a route URL from inside a view,
    with the same rules as api.url_for. Pass _external=True to prefix the
    current request's origin. req.base_url is that origin
    (scheme://host[:port]).
  • One-shot session messages: req.flash("Saved.") queues a string, and
    req.flashes() returns and clears the queue. resp.render() passes
    get_flashed_messages into the template unless the caller supplies that
    name. Requires sessions. At most 32 messages are kept.
  • resp.link(url, rel="next") appends an RFC 8288 Link header. Repeat it
    for several relations; extra keywords become link parameters.
  • resp.set_cookie(..., partitioned=True) sets the CHIPS Partitioned
    attribute. It requires secure=True. Python 3.14's http.cookies knows
    the attribute; on 3.11–3.13 Responder registers it so the flag is still
    emitted instead of raising. Pass the same flag to resp.delete_cookie
    so the browser will drop the cookie.

https://pypi.org/project/responder/9.3.0/