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

Cookie parsing and "path parameters" #309

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

CheyenneForbes
Copy link

@CheyenneForbes CheyenneForbes commented May 30, 2018

Full paths

This will come in handy in cases where a developer wants to serve static files from a folder (css, etc.).

Here is the syntax:
static_resource->set_path( "/static/{filepath: TO_END}" );
static_resource->set_paths( {"/{filepath: TO_END}", "/static/{filepath: TO_END}"} );

Only 1 "TO_END" parameter can be used per path

Cookies

request->get_cookie_parameter("my-value");
request->get_cookie_parameters();

@CheyenneForbes CheyenneForbes changed the title Allow full paths to be parameters Allow full paths to be parameters and cookies to be parsed Jun 1, 2018
@CheyenneForbes CheyenneForbes changed the title Allow full paths to be parameters and cookies to be parsed Cookie parsing and "path parameters" Jun 1, 2018
@RoyBellingan RoyBellingan mentioned this pull request Oct 4, 2021
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.

1 participant