2
0
mirror of https://github.com/boostorg/url.git synced 2026-02-12 00:22:23 +00:00

add examples to docs

fix #305, close #350
This commit is contained in:
alandefreitas
2022-08-05 22:10:05 -03:00
committed by Vinnie Falco
parent e97191f4cb
commit e6f3efd004
4 changed files with 51 additions and 1 deletions

View File

@@ -7,6 +7,17 @@
// Official repository: https://github.com/CppAlliance/url
//
//[example_route
/*
This example defines a route for a URL path.
If the specified route matches and the file
exists, the example prints its contents to
standard output.
*/
#include <boost/url/error.hpp>
#include <boost/url/segments_encoded.hpp>
#include <boost/url/segments_encoded_view.hpp>
@@ -191,3 +202,5 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
}
//]