]> git.ipfire.org Git - thirdparty/tornado.git/commit
httputil: Deprecate some args to HTTPServerRequest constructor 3646/head
authorBen Darnell <ben@bendarnell.com>
Mon, 22 Jun 2026 18:38:46 +0000 (14:38 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 22 Jun 2026 18:38:46 +0000 (14:38 -0400)
commit41f931c8867d90ee11e068bfa35838ca8277f702
tree8bfe80180cf1a1cca008ed07d8d06d63ad4a9a7a
parentf491e4c1914be0ac6635a0eacb3c978d89eec4f1
httputil: Deprecate some args to HTTPServerRequest constructor

HTTPServerRequest has some redundant and/or obsolete constructor
arguments. #3542 cleaned this up a bit, but it included a backwards
incompatible change with no deprecation warning. This change adds
deprecation warnings in anticipation of deleting the old arguments
in Tornado 6.7.

In Tornado 6.5, all arguments were officially optional, but things would
only partially work without the method and uri arguments. #3542 made
either the uri or start_line arguments mandatory.

This change makes the method and uri arguments deprecated. It is also
deprecated to use method and uri at the same time as start_line
(previously method and uri would be silently ignored). In Tornado 6.7,
the method, uri, and version arguments will be removed, and start_line
will be required.

Updates #3500
Updates #3542
Fixes #3637
tornado/httputil.py
tornado/test/httputil_test.py