Will calls on ServerSocket::request
returned MainLoop::new_client
applies Tower layers?
#11
Labels
enhancement
New feature or request
Thank you for developing this library, and
Hello, I had tried two ways creating Tower layers to make some logs:
fn notify
,fn emit
andfn call
forward
feature, mock the server and client like whatexamples/interceptor.rs
do, logging on trait methodsfn notify
,fn emit
andfn call
both approach applies logs for requests from server to client, but does not work for the requests that I filed from client with
ServerSocket::request
, where theServerSocket
instance is returned byMainLoop::new_client
.My questions are:
ServerSocket::request
returnedMainLoop::new_client
applies Tower layers?fn notify
,fn emit
andfn call
event
in the library?I had also tried to use the builder function
MainLoop::new_client
's server socket argument, userouter.request::<ACustomRequest>(|router_state, request| { logging here; return here })
. butMainLoop::new_client
do.request::<MainLoop::new_client>(....)
does not work, the callback is not fired.request::<MainLoop::new_client>(....)
callback, calling the.request
ofserver_socket
yields theResult<_, async_lsp:Error>
, but not theResult<_, async_lsp:ResponseError>
which is required by therouter.request
callbackThe text was updated successfully, but these errors were encountered: