GET and POST methods?
Closed this issue · 3 comments
pangoro24 commented
How to use GET method with parameters and POST method?
Any example to implement http methods?
hugokernel commented
You can do that by accessing request method attribute.
async def only_get_method(request):
if request.method != "GET":
raise HttpError(request, 501, "Not Implemented")
pangoro24 commented
Can you provide a demo using GET and POST? That will be helpful
hugokernel commented
Sorry for the late reply.
I will add more examples when I have time.