WIP: work on http load test (now partly working) and http protocol

This commit is contained in:
Joakim Frostegård 2020-07-20 14:30:36 +02:00
parent 5b0d364ccf
commit d1e9d24773
10 changed files with 326 additions and 226 deletions

View file

@ -187,6 +187,12 @@ impl Response {
Response::Scrape(r) => r.to_bytes(),
}
}
pub fn from_bytes(bytes: &[u8]) -> anyhow::Result<Self> {
Ok(Self::Failure(FailureResponse {
failure_reason: "fake response".to_string()
}))
}
}