mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
aquatic_http: bencoded response with content-length
This commit is contained in:
parent
a487347a0d
commit
6b1f11635b
6 changed files with 126 additions and 12 deletions
|
|
@ -169,7 +169,7 @@ pub enum Response {
|
|||
|
||||
|
||||
impl Response {
|
||||
pub fn to_http_string(self) -> String {
|
||||
"(response)".to_string()
|
||||
pub fn to_bytes(self) -> Vec<u8> {
|
||||
bendy::serde::to_bytes(&self).unwrap()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue