Skip to content

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