Skip to content

add handling for HTTP query params#5

Closed
vepkenez wants to merge 1 commit intoderekpierre:timeoutsfrom
vepkenez:porter-http-finesse
Closed

add handling for HTTP query params#5
vepkenez wants to merge 1 commit intoderekpierre:timeoutsfrom
vepkenez:porter-http-finesse

Conversation

@vepkenez
Copy link
Copy Markdown

@vepkenez vepkenez commented Jul 4, 2021

No description provided.

@vepkenez
Copy link
Copy Markdown
Author

vepkenez commented Jul 4, 2021

this lets us do
http://127.0.0.1:9155/get_ursulas?quantity=100&duration_periods=11
This will make it much easier for web developers to use porter without setting up special headers etc.


# handle querystring args from flask eg. ?quantity=11&duration_periods=100
if hasattr(control_request, 'args'):
request_body.update(control_request.args)
Copy link
Copy Markdown
Author

@vepkenez vepkenez Jul 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RE nucypher#2735
If we go with the StringList field idea, this is all we would need and it would work with any request method.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is vital that these changes are merged ASAP!

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha - good to know you are still around 🤗

Copy link
Copy Markdown
Owner

@derekpierre derekpierre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a test.

@derekpierre derekpierre dismissed their stale review April 17, 2024 19:30

Test over

@derekpierre derekpierre self-requested a review April 17, 2024 19:30
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

Successfully merging this pull request may close these issues.

2 participants