chiark / gitweb /
wip server
[hippotat.git] / server / sweb.rs
index 157261abe7864c2541f16439b837c73401f29914..4998bd9f85e6d9d9f5f38bf89f304670c00bf309 100644 (file)
@@ -19,6 +19,7 @@ pub struct WebRequest {
   pub reply_to: oneshot::Sender<WebResponse>,
   pub warnings: Warnings,
   pub conn: Arc<String>,
+  pub may_route: MayRoute,
 }
 
 /// Reply from client task to hyper worker pool task
@@ -177,7 +178,8 @@ pub async fn handle(
     // boundary, start, &comp.name, &client.ic);
 
     let (reply_to, reply_recv) = oneshot::channel();
-    trace!("{} {} request, Content-Length={}",
+    trace!(target: "hippotatd",
+           "{} {} request, Content-Length={}",
            &conn, &client_name, length_hint);
     let wreq = WebRequest {
       initial,
@@ -188,6 +190,7 @@ pub async fn handle(
       warnings: mem::take(&mut warnings),
       reply_to,
       conn: conn.clone(),
+      may_route: MayRoute::came_from_outside_hippotatd(),
     };
 
     client.web.try_send(wreq)