@@ -385,12 +385,6 @@ request.
385385
386386 .. versionadded :: 3.3
387387
388- .. method :: Request.add_data(data)
389-
390- Set the :class: `Request ` data to *data *. This is ignored by all handlers except
391- HTTP handlers --- and there it should be a byte string, and will change the
392- request to be ``POST `` rather than ``GET ``.
393-
394388
395389.. method :: Request.get_method()
396390
@@ -403,16 +397,6 @@ request.
403397 get_method now looks at the value of :attr: `Request.method `.
404398
405399
406- .. method :: Request.has_data()
407-
408- Return whether the instance has a non-\ ``None `` data.
409-
410-
411- .. method :: Request.get_data()
412-
413- Return the instance's data.
414-
415-
416400.. method :: Request.add_header(key, val)
417401
418402 Add another header to the request. Headers are currently ignored by all
@@ -440,38 +424,78 @@ request.
440424 Return the URL given in the constructor.
441425
442426
427+ .. method :: Request.set_proxy(host, type)
428+
429+ Prepare the request by connecting to a proxy server. The *host * and *type * will
430+ replace those of the instance, and the instance's selector will be the original
431+ URL given in the constructor.
432+
433+
434+ .. method :: Request.add_data(data)
435+
436+ Set the :class: `Request ` data to *data *. This is ignored by all handlers except
437+ HTTP handlers --- and there it should be a byte string, and will change the
438+ request to be ``POST `` rather than ``GET ``. Deprecated in 3.3, use
439+ :attr: `Request.data `.
440+
441+ .. deprecated :: 3.3
442+
443+
444+ .. method :: Request.has_data()
445+
446+ Return whether the instance has a non-\ ``None `` data. Deprecated in 3.3,
447+ use :attr: `Request.data `.
448+
449+ .. deprecated :: 3.3
450+
451+
452+ .. method :: Request.get_data()
453+
454+ Return the instance's data. Deprecated in 3.3, use :attr: `Request.data `.
455+
456+ .. deprecated :: 3.3
457+
458+
443459.. method :: Request.get_type()
444460
445- Return the type of the URL --- also known as the scheme.
461+ Return the type of the URL --- also known as the scheme. Deprecated in 3.3,
462+ use :attr: `Request.type `.
463+
464+ .. deprecated :: 3.3
446465
447466
448467.. method :: Request.get_host()
449468
450- Return the host to which a connection will be made.
469+ Return the host to which a connection will be made. Deprecated in 3.3, use
470+ :attr: `Request.host `.
471+
472+ .. deprecated :: 3.3
451473
452474
453475.. method :: Request.get_selector()
454476
455477 Return the selector --- the part of the URL that is sent to the server.
478+ Deprecated in 3.3, use :attr: `Request.selector `.
456479
457-
458- .. method :: Request.set_proxy(host, type)
459-
460- Prepare the request by connecting to a proxy server. The *host * and *type * will
461- replace those of the instance, and the instance's selector will be the original
462- URL given in the constructor.
480+ .. deprecated :: 3.3
463481
464482
465483.. method :: Request.get_origin_req_host()
466484
467- Return the request-host of the origin transaction, as defined by :rfc: `2965 `.
468- See the documentation for the :class: `Request ` constructor.
485+ Return the request-host of the origin transaction, as defined by
486+ :rfc: `2965 `. See the documentation for the :class: `Request ` constructor.
487+ Deprecated in 3.3, use :attr: `Request.origin_req_host `.
488+
489+ .. deprecated :: 3.3
469490
470491
471492.. method :: Request.is_unverifiable()
472493
473494 Return whether the request is unverifiable, as defined by RFC 2965. See the
474- documentation for the :class: `Request ` constructor.
495+ documentation for the :class: `Request ` constructor. Deprecated in 3.3, use
496+ :attr: `Request.is_unverifiable `.
497+
498+ .. deprecated :: 3.3
475499
476500
477501.. _opener-director-objects :
0 commit comments