Added Client::request stream content test as suggested in #87
This commit is contained in:
parent
76bf8942fd
commit
74d7ca0cdb
1 changed files with 8 additions and 0 deletions
|
|
@ -47,6 +47,14 @@ int main() {
|
|||
assert(output.str()=="A string");
|
||||
}
|
||||
|
||||
{
|
||||
stringstream output;
|
||||
stringstream content("A string");
|
||||
auto r=client.request("POST", "/string", content);
|
||||
output << r->content.rdbuf();
|
||||
assert(output.str()=="A string");
|
||||
}
|
||||
|
||||
{
|
||||
stringstream output;
|
||||
auto r=client.request("GET", "/info", "", {{"Test Parameter", "test value"}});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue