Answer the question
In order to leave comments, you need to log in
What can you use your own request type/method for?
I learned a funny thing today, it turns out JavaScript allows you to send requests with ANY method:
response = await (await fetch('/', { method: 'MYMETHOD' })).text();
Answer the question
In order to leave comments, you need to log in
Not for what, just like that.
You might as well write your own HTTP header: x-qwerty: asd. And nothing will happen.
Sergey delphinpro 's answer to this question, I think you can create your own endpoints in the API for some specific things.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question