Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document more BaseHTTPRequestHandler attributes #67598

Closed
vadmium opened this issue Feb 8, 2015 · 7 comments
Closed

Document more BaseHTTPRequestHandler attributes #67598

vadmium opened this issue Feb 8, 2015 · 7 comments
Labels
docs Documentation in the Doc dir stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@vadmium
Copy link
Member

vadmium commented Feb 8, 2015

BPO 23410
Nosy @berkerpeksag, @vadmium, @demianbrecht
Files
  • http-attributes.patch
  • http-attributes.v2.patch
  • http-attributes.v3.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2015-02-18.02:13:37.942>
    created_at = <Date 2015-02-08.10:21:17.617>
    labels = ['type-feature', 'library', 'docs']
    title = 'Document more BaseHTTPRequestHandler attributes'
    updated_at = <Date 2015-02-18.02:13:37.897>
    user = 'https://github.com/vadmium'

    bugs.python.org fields:

    activity = <Date 2015-02-18.02:13:37.897>
    actor = 'python-dev'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2015-02-18.02:13:37.942>
    closer = 'python-dev'
    components = ['Documentation', 'Library (Lib)']
    creation = <Date 2015-02-08.10:21:17.617>
    creator = 'martin.panter'
    dependencies = []
    files = ['38042', '38141', '38157']
    hgrepos = []
    issue_num = 23410
    keywords = ['patch']
    message_count = 7.0
    messages = ['235554', '235941', '236018', '236124', '236126', '236127', '236162']
    nosy_count = 5.0
    nosy_names = ['docs@python', 'python-dev', 'berker.peksag', 'martin.panter', 'demian.brecht']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue23410'
    versions = []

    @vadmium
    Copy link
    Member Author

    vadmium commented Feb 8, 2015

    [Padding to avoid Error: 'utf8' codec can't decode bytes in position 189-190: invalid continuation byte]

    This is a patch to document two attributes of http.server.BaseHTTPRequestHandler: “close_connection” and “requestline”. Normally these are set by the handle_one_request() method, but when overriding that method, you need to know to set these attributes.

    @vadmium vadmium added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Feb 8, 2015
    @demianbrecht
    Copy link
    Mannequin

    demianbrecht mannequin commented Feb 14, 2015

    Minor comment in Rietveld, otherwise LGTM.

    @vadmium
    Copy link
    Member Author

    vadmium commented Feb 15, 2015

    Posting another patch which hopefully explains the “requestline” attribute a bit better. Let me know if you have any ideas for better wording.

    @vadmium
    Copy link
    Member Author

    vadmium commented Feb 17, 2015

    Posting patch v3. It is based on Demian’s suggested wording for the requestline attribute, but adjusted to match the other entries, and to mention the empty string.

    @demianbrecht
    Copy link
    Mannequin

    demianbrecht mannequin commented Feb 17, 2015

    LGTM

    @demianbrecht
    Copy link
    Mannequin

    demianbrecht mannequin commented Feb 17, 2015

    Added Library component as there are a few newly added tests as well though and cosmetic changes were made to server.py.

    @demianbrecht demianbrecht mannequin added the stdlib Python modules in the Lib dir label Feb 17, 2015
    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Feb 18, 2015

    New changeset f9ff2a5bbbe2 by Benjamin Peterson in branch '3.4':
    document the requestline and close_connection attributes, use real booleans, and add tests (closes bpo-23410)
    https://hg.python.org/cpython/rev/f9ff2a5bbbe2

    New changeset 6e3e252cf047 by Benjamin Peterson in branch 'default':
    merge 3.4 (bpo-23410)
    https://hg.python.org/cpython/rev/6e3e252cf047

    @python-dev python-dev mannequin closed this as completed Feb 18, 2015
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant