Skip to content

v20.55.0

Compare
Choose a tag to compare
@uNetworkingAB uNetworkingAB released this 27 Dec 19:46
· 86 commits to master since this release
  • Adds named parameter getters (as complement to integral offset getters) like so:
	/* Define a parameter route */
	.get("/:first/static/:second", [](auto *res, auto *req) {

		/* Use the value of a parameter as response */
		res->write("<h1>first is: ");
		res->write(req->getParameter("first"));
		res->write("</h1>");

		res->write("<h1>second is: ");
		res->write(req->getParameter("second"));
		res->end("</h1>");

	})
  • Adds new example showing the above in use.