public final class FkContentType extends Object implements Fork
The class is immutable and thread-safe.
RsFork
Constructor and Description |
---|
FkContentType(String atype,
Response response)
Ctor.
|
FkContentType(String atype,
Take take)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
Opt<Response> |
route(Request req)
Process this request or ignore it.
|
public FkContentType(String atype, Response response)
atype
- Accepted typeresponse
- Response to returnpublic Opt<Response> route(Request req) throws IOException
Fork
route
in interface Fork
req
- RequestIOException
- If failsCopyright © 2015–2018 Take. All rights reserved.