MCPcopy Create free account
hub / github.com/3rdparty/libprocess / initialize

Method initialize

src/tests/process_tests.cpp:1927–1941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1925 : ProcessBase(id) {}
1926
1927 void initialize() override
1928 {
1929 route(
1930 "/handler1",
1931 None(),
1932 &HTTPEndpointProcess::handler1);
1933 route(
1934 "/handler2",
1935 None(),
1936 &HTTPEndpointProcess::handler2);
1937 route(
1938 "/handler3",
1939 None(),
1940 &HTTPEndpointProcess::handler3);
1941 }
1942
1943 MOCK_METHOD1(handler1, Future<http::Response>(const http::Request&));
1944 MOCK_METHOD1(handler2, Future<http::Response>(const http::Request&));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected