//eprintln!("{}", &output);
output.into()
}
+
+#[proc_macro]
+pub fn into_crlfs(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
+ let input: proc_macro2::TokenStream = input.into();
+ dbg!(&input);
+ input.into()
+}
// There is NO WARRANTY.
use hippotat::prelude::*;
+use hippotat_macros::into_crlfs;
type OutstandingRequest<'r> = Pin<Box<
dyn Future<Output=Option<Bytes>> + Send + 'r
reqs: &mut Vec<OutstandingRequest<'r>>,
upbound: FramesData,
) {
+ let show_timeout = c.ic.http_timeout
+ .saturating_add(Duration::from_nanos(999_999_999))
+ .as_secs();
+
+ let prefix = format!(into_crlfs!(
+ r#"--
+ Content-Type: text/plain; charset="utf-8"
+ Content-Disposition: form-data; name="m"
+
+ {}
+ {}
+ {}
+ {}"#),
+ &c.ic.link.client,
+ "xxx token goes here",
+ c.ic.target_requests_outstanding,
+ show_timeout,
+ );
+
+ let prefix2 = format!(into_crlfs!(
+ r#"
+ --
+ Content-Type: application/octet-stream
+ Content-Disposition: form-data; name="d"
+ "#),
+ );
+ let suffix = format!(into_crlfs!(
+ r#"
+ --b--
+ "#),
+ );
+
let body = hyper::body::Body::wrap_stream(
futures::stream::iter(
Itertools::intersperse(