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

Function validateGetWithoutQuery

src/tests/http_tests.cpp:724–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722
723
724http::Response validateGetWithoutQuery(const http::Request& request)
725{
726 EXPECT_SOME_NE(network::Address(process::address()), request.client);
727 EXPECT_EQ("GET", request.method);
728 EXPECT_THAT(request.url.path, EndsWith("get"));
729 EXPECT_EQ("", request.body);
730 EXPECT_NONE(request.url.fragment);
731 EXPECT_TRUE(request.url.query.empty());
732
733 return http::OK();
734}
735
736
737http::Response validateGetWithQuery(const http::Request& request)

Callers

nothing calls this directly

Calls 4

AddressClass · 0.85
OKClass · 0.85
addressFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected