Skip to content
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

How i can return custom response status? #180

Open
alvassin opened this issue Mar 12, 2019 · 4 comments
Open

How i can return custom response status? #180

alvassin opened this issue Mar 12, 2019 · 4 comments

Comments

@alvassin
Copy link
Contributor

How is it possible to return 201 status for example?

@dchaplinsky
Copy link
Owner

Are you sure that the problem is with library? I think normal aiohttp way should work just fine.
What you've tried already?

@alvassin
Copy link
Contributor Author

Normally, i return Response with some body, custom headers, custom status.

With aiohttp-validate decorator i have to return directly only body. There is no way to define http status or headers.
See: https://github.com/dchaplinsky/aiohttp_validate/blob/master/aiohttp_validate/__init__.py#L138

@dchaplinsky
Copy link
Owner

Yes, you are right. Well, cannot say I have too much time on this project now.
Happy to review PR as long as it'll keep backward compatibility.

@alvassin
Copy link
Contributor Author

Okay, asked just in case if you have workaround :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants