public class FkWrap extends Object implements Fork
The class is immutable and thread-safe.
RsFork
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
route(Request req)
Process this request or ignore it.
|
public FkWrap(Fork fork)
fork
- Original forkpublic final Opt<Response> route(Request req) throws IOException
Fork
route
in interface Fork
req
- RequestIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.