public static interface HTTPServer.ContextHandler
ContextHandler serves the content of resources within a context.| 限定符和类型 | 方法和说明 |
|---|---|
int |
serve(HTTPServer.Request req,
HTTPServer.Response resp)
Serves the given request using the given response.
|
int serve(HTTPServer.Request req, HTTPServer.Response resp) throws IOException
req - the request to be servedresp - the response to be filledIOException - if an IO error occursCopyright © 2022. All rights reserved.