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

Set query params #118

Closed
phungleson opened this issue Dec 6, 2021 · 2 comments
Closed

Set query params #118

phungleson opened this issue Dec 6, 2021 · 2 comments
Labels
question Further information is requested

Comments

@phungleson
Copy link
Contributor

Hi Sunli, I am using poem::RequestBuilder to build requests for testing, how do I add query params to request?

@phungleson phungleson added the question Further information is requested label Dec 6, 2021
@sunli829
Copy link
Collaborator

sunli829 commented Dec 7, 2021

Use the RequestBuilder::uri method, like the following:

builder.uri("/a=1&b=2")

@phungleson
Copy link
Contributor Author

Thanks, I didn't think about this simple solution!

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

No branches or pull requests

2 participants