userver
C++ Async Framework
Documentation
API Groups
Namespaces
Reference
Class List
Class Index
File List
Macros
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
main.cpp
1
#
include
<
userver
/
utest
/
using_namespace_userver
.
hpp
>
// Note: this is for the purposes of samples only
2
3
#
include
<
userver
/
easy
.
hpp
>
4
5
int
main(
int
argc,
char
* argv[]) {
6
easy
::HttpWith<>(argc, argv)
7
.
DefaultContentType
(
http
::content_type::kTextPlain
)
8
.
Route
(
"/hello"
,
[](
const
server::
http
::HttpRequest&
/*req*/
) {
9
return
"Hello world"
;
// Just return the string as a response body
10
}
)
;
11
}
Docs version:
v1.0
,
v2.0
,
trunk/develop
samples
0_hello_world
main.cpp
Generated on Wed Apr 30 2025 15:48:43 for userver by
Doxygen
1.13.2