forked from boostorg/beast
Derive header from Fields (API Change)
This commit is contained in:
@@ -99,24 +99,11 @@ public:
|
||||
BEAST_EXPECT(size(f) == 2);
|
||||
}
|
||||
|
||||
void
|
||||
testMethodString()
|
||||
{
|
||||
f_t f;
|
||||
f.method_impl("CRY");
|
||||
BEAST_EXPECTS(f.method_impl() == "CRY", f.method_impl());
|
||||
f.method_impl("PUT");
|
||||
BEAST_EXPECTS(f.method_impl() == "PUT", f.method_impl());
|
||||
f.method_impl({});
|
||||
BEAST_EXPECTS(f.method_impl().empty(), f.method_impl());
|
||||
}
|
||||
|
||||
void run() override
|
||||
{
|
||||
testHeaders();
|
||||
testRFC2616();
|
||||
testErase();
|
||||
testMethodString();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user