/// Makes a new parameter from arbitrary bytes.
Makes a new parameter from arbitrary bytes.
Makes a new parameter from arbitrary bytes .
pub fn bytes<T>(value: T) -> Part
    where
        T: Into<Cow<'static, [u8]>>,
    {
        let body = match value.into() {
            Cow::Borrowed(slice) => Body::from(slice),
            Cow::Owned(vec) => Body::from(vec),
        };
        Part::new(body)
    }
pub fn bytes < T > ( value : T ) -> Part where T : Into < Cow < ' static , [ u8 ] > > , { let body = match value . into ( ) { Cow :: Borrowed ( slice ) => Body :: from ( slice ) , Cow :: Owned ( vec ) => Body :: from ( vec ) , } ; Part :: new ( body ) }
Makes a new parameter from arbitrary bytes.
Makes a new parameter from arbitrary bytes .
value
T