pub struct AsyncHttpResponseService;Expand description
The async.http.response service (Java AsyncHttpResponse) — the HTTP
response leg as a REAL registered function: a REST-automation dispatch is a
callback to the endpoint service, whose reply (or a flow’s response)
arrives here carrying the HTTP context id as its correlation id, and this
service hands the envelope back to the waiting connection. Because it is
an ordinary traced worker, the response leg is a visible span that parents
onto the replying function’s span — exactly the Java reference topology.
A missing context (the connection timed out) drops the reply silently.
Trait Implementations§
Source§impl ComposableFunction for AsyncHttpResponseService
impl ComposableFunction for AsyncHttpResponseService
fn handle_event<'life0, 'async_trait>(
&'life0 self,
_headers: HashMap<String, String>,
input: EventEnvelope,
_instance: usize,
) -> Pin<Box<dyn Future<Output = Result<EventEnvelope, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for AsyncHttpResponseService
impl RefUnwindSafe for AsyncHttpResponseService
impl Send for AsyncHttpResponseService
impl Sync for AsyncHttpResponseService
impl Unpin for AsyncHttpResponseService
impl UnsafeUnpin for AsyncHttpResponseService
impl UnwindSafe for AsyncHttpResponseService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more