-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use get method for http request, currently seems only post is supported #569
Comments
@SeaOfOcean: Could you please elaborate, for which API you are trying out the GET method request? You can use the API descriptions to view a full list of inference/management APIs and their respective details |
Inference API, for example call by
pass argument arg1 and arg2 by get method, and handle it in user defined processor |
Unfortunately prediction/inference API currently only supports the POST method. |
Do you have any plan for supporting GET method? Most serving framework like flask/tornado support GET |
There is no immediate plan for this. The serving framework (netty) supports all HTTP methods. It's the inference API which only supports the POST method. |
There is no direct relation between flask and torchserve except the fact that both support handling http request however using different engines [netty or python apis]. Hence naturally, they can support all HTTP methods. |
we can also get input from arguments of Get method. e.g. curl http://localhost:8080/predictions/pipeline?arg1=1&arg2=2 |
@SeaOfOcean One method I am working on is doing the following:
This way I can handle specific conditions that I need inside |
thanks, it is a great workaround |
Is your feature request related to a problem? Please describe.
Can I use get method for http request, currently seems only post is supported
Describe the solution
Describe alternatives solution
The text was updated successfully, but these errors were encountered: