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

Request service via GET #15

Closed
ghost opened this issue Aug 23, 2016 · 1 comment
Closed

Request service via GET #15

ghost opened this issue Aug 23, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 23, 2016

Will it be possible to call my function via GET? Some apps, like podcasts agregators and rss readers, can only make get requests.

@keithwhor
Copy link
Contributor

You can --- query parameters map to params.vflags 1:1.

Note that by default, it's an array with items separated by spaces (as passed in). This can be overcome using quotation marks.

i.e.

https://f.stdlib.com/me/ns/f?name=Hello%20World

Maps to

params.vflags.name; // -> ['Hello', 'World'];

And

https://f.stdlib.com/me/ns/f?name="Hello%20World"

Maps to

params.vflags.name; // -> ['Hello World'];

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

1 participant