ID EN
Urllib Request

get_method

Python 3.11

Return a string indicating the HTTP request method. If Request.method is not None, return its value, otherwise return 'GET' if Request.data is None, or 'POST' if it’s not. This is only meaningful for HTTP requests.

Syntax

PYTHON
Request.get_method()

See Also

Request.method Request.data Request.method