restbed icon indicating copy to clipboard operation
restbed copied to clipboard

Cookie parsing and "path parameters"

Open CheyenneForbes opened this issue 7 years ago • 0 comments

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 avatar May 30 '18 03:05 CheyenneForbes