restbed
restbed copied to clipboard
Cookie parsing and "path parameters"
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();