EXPECT_EQ(hr.field_value.size(), 8); H_TEST_ASSERT(hr.field_value["Connection"].compare("keep-alive") == 0); H_TEST_ASSERT(hr.field_value["Accept-Language"].compare("en-us,en;q=0.5") == 0); H_TEST_ASSERT(hr.url_query() == "page=1"); H_TEST_ASSERT(hr.url_fragment() == "posts-17408"); ASSERT_STREQ(hr.url_path().c_str(), "/forums/1/topics/2375");
H_TEST_ASSERT(hr.completed());
ASSERT_STREQ(hr.field_value["Content-Length"].c_str(), "10");
ASSERT_STREQ(hr.field_value["field"].c_str(), "test");
ASSERT_STREQ(hr.url_path().c_str(), "/post_identity_body_world");
ASSERT_STREQ(hr.body.ToString().c_str(), "testttestt");