DELETE module¶
-
class
methods.DELETE.
DELETE
¶ Bases:
object
-
static
getIdOfUrl
(URI: str) → int¶ Return the id value present in the URL
- Parameters
URI – String of the url
- Returns
The id value
-
static
response
(request: message.Request.Request) → bytes¶ Performs a removal when there is a DELETE request, returning a response with the headers and the correct body. Removes the object within the database, based on the received ID.
- Parameters
request – Request object, containing the body and headers of that request
- Returns
A byte object containing the response to this request
-
static