Repository navigation
v9.3.0
[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 asapi.url_for. Pass_external=Trueto prefix the
current request's origin.req.base_urlis 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_messagesinto the template unless the caller supplies that
name. Requires sessions. At most 32 messages are kept. resp.link(url, rel="next")appends an RFC 8288Linkheader. Repeat it
for several relations; extra keywords become link parameters.resp.set_cookie(..., partitioned=True)sets the CHIPSPartitioned
attribute. It requiressecure=True. Python 3.14'shttp.cookiesknows
the attribute; on 3.11–3.13 Responder registers it so the flag is still
emitted instead of raising. Pass the same flag toresp.delete_cookie
so the browser will drop the cookie.