mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 18:37:41 +02:00
migrate to actix-web beta 14 (#209)
This commit is contained in:
@ -11,6 +11,7 @@ use std::{
|
||||
};
|
||||
|
||||
use actix_web::{
|
||||
body::BoxBody,
|
||||
dev::Payload,
|
||||
error::PayloadError,
|
||||
http::header::{CONTENT_LENGTH, CONTENT_TYPE},
|
||||
@ -145,6 +146,8 @@ where
|
||||
}
|
||||
|
||||
impl<T: Message + Default> Responder for ProtoBuf<T> {
|
||||
type Body = BoxBody;
|
||||
|
||||
fn respond_to(self, _: &HttpRequest) -> HttpResponse {
|
||||
let mut buf = Vec::new();
|
||||
match self.0.encode(&mut buf) {
|
||||
|
Reference in New Issue
Block a user