refactor(body): use HttpBody with extra bounds instead of Payload trait
This commit is contained in:
committed by
Sean McArthur
parent
203621e3be
commit
aac0e2dd57
@@ -258,7 +258,7 @@ mod response_body_lengths {
|
||||
fn auto_response_with_unknown_length() {
|
||||
run_test(TestCase {
|
||||
version: 1,
|
||||
// no headers means trying to guess from Payload
|
||||
// no headers means trying to guess from HttpBody
|
||||
headers: &[],
|
||||
body: Bd::Unknown("foo bar baz"),
|
||||
expects_chunked: true,
|
||||
@@ -270,7 +270,7 @@ mod response_body_lengths {
|
||||
fn auto_response_with_known_length() {
|
||||
run_test(TestCase {
|
||||
version: 1,
|
||||
// no headers means trying to guess from Payload
|
||||
// no headers means trying to guess from HttpBody
|
||||
headers: &[],
|
||||
body: Bd::Known("foo bar baz"),
|
||||
expects_chunked: false,
|
||||
@@ -282,7 +282,7 @@ mod response_body_lengths {
|
||||
fn auto_response_known_empty() {
|
||||
run_test(TestCase {
|
||||
version: 1,
|
||||
// no headers means trying to guess from Payload
|
||||
// no headers means trying to guess from HttpBody
|
||||
headers: &[],
|
||||
body: Bd::Known(""),
|
||||
expects_chunked: false,
|
||||
@@ -294,7 +294,7 @@ mod response_body_lengths {
|
||||
fn http10_auto_response_with_unknown_length() {
|
||||
run_test(TestCase {
|
||||
version: 0,
|
||||
// no headers means trying to guess from Payload
|
||||
// no headers means trying to guess from HttpBody
|
||||
headers: &[],
|
||||
body: Bd::Unknown("foo bar baz"),
|
||||
expects_chunked: false,
|
||||
|
||||
Reference in New Issue
Block a user