1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

rename BinaryBody

This commit is contained in:
Nikolay Kim
2017-11-10 13:42:32 -08:00
parent f2520d2d79
commit c565965865
6 changed files with 103 additions and 104 deletions

View File

@@ -13,7 +13,7 @@ use actix::dev::{AsyncContextApi, ActorAddressCell, ActorItemsCell, ActorWaitCel
Envelope, ToEnvelope, RemoteEnvelope};
use task::{IoContext, DrainFut};
use body::BinaryBody;
use body::Binary;
use route::{Route, Frame};
use httpresponse::HttpResponse;
@@ -136,7 +136,7 @@ impl<A> HttpContext<A> where A: Actor<Context=Self> + Route {
}
/// Write payload
pub fn write<B: Into<BinaryBody>>(&mut self, data: B) {
pub fn write<B: Into<Binary>>(&mut self, data: B) {
self.stream.push_back(Frame::Payload(Some(data.into())))
}