We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
master
Create a class view with @app.page decorator and implement a post method as per https://faust.readthedocs.io/en/latest/userguide/tasks.html#http-verbs-get-post-put-delete
@app.page
post
When running multiple workers, request is routed with POST method.
Requests to other workers are made using GET method.
Looks like GET is always used at https://github.com/faust-streaming/faust/blob/master/faust/app/router.py#L73
Could be as simple as calling app.http_client.request(request.method, routed_url).
app.http_client.request(request.method, routed_url)
The text was updated successfully, but these errors were encountered:
Yes the solution looks good! Can you submit a PR with your change?
Sorry, something went wrong.
fix routing method faust-streaming#188
3e042a8
fix routing method #188 (#191)
835f37e
Successfully merging a pull request may close this issue.
Checklist
master
branch of Faust.Steps to reproduce
Create a class view with
@app.page
decorator and implement apost
method as per https://faust.readthedocs.io/en/latest/userguide/tasks.html#http-verbs-get-post-put-deleteExpected behavior
When running multiple workers, request is routed with POST method.
Actual behavior
Requests to other workers are made using GET method.
Looks like GET is always used at https://github.com/faust-streaming/faust/blob/master/faust/app/router.py#L73
Could be as simple as calling
app.http_client.request(request.method, routed_url)
.Versions
The text was updated successfully, but these errors were encountered: