Skip to content

Misleading docstring in RequestHandler.prepare() #3430

Closed
@pawciobiel

Description

@pawciobiel

I think RequestHandler.prepare() docstring is misleading because it doesn't mention that the method has to be in SUPPORTED_METHODS - otherwise prepare() won't be called.

I suggest we change:

        Override this method to perform common initialization regardless of the request method.

to:

        Override this method to perform common initialization for request method.                                                                                     
        If the request method is not in ``SUPPORTED_METHODS`` this will not be called. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions