We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5417b8 + c592b71 commit 0a92e0dCopy full SHA for 0a92e0d
src/server/mod.rs
@@ -175,7 +175,7 @@ pub trait Handler: Sync + Send {
175
/// Receives a `Request`/`Response` pair, and should perform some action on them.
176
///
177
/// This could reading from the request, and writing to the response.
178
- fn handle(&self, Request, Response<Fresh>);
+ fn handle<'a>(&'a self, Request<'a>, Response<'a, Fresh>);
179
}
180
181
impl<F> Handler for F where F: Fn(Request, Response<Fresh>), F: Sync + Send {
0 commit comments