public class WebServer extends Object
Constructor and Description |
---|
WebServer(String host,
int port)
Creates a new WebServer.
|
public WebServer(String host, int port)
host
- hostname.port
- port number.public WebServer get(String path, BHandler handler)
path
- The URL path.handler
- The request handler.public WebServer post(String path, BHandler handler)
path
- The URL path.handler
- The request handler.Copyright © 2018 WSO2. All rights reserved.