NanoHTTPD HTTP & WebSocket server message transport plugin.
Interprets HTTP request body as an RPC request and processes it using the specified RPC request handler.
- The response returned by the RPC request handler is used as HTTP response body.
 - Processes only HTTP requests starting with specified URL path.
 
Type parameters
- Effect
 - 
    
effect type
 
Value parameters
- effectSystem
 - 
    
effect system plugin
 - mapException
 - 
    
maps an exception to a corresponding HTTP status code
 - methods
 - 
    
allowed HTTP request methods
 - pathPrefix
 - 
    
HTTP URL path prefix, only requests starting with this path prefix are allowed
 - port
 - 
    
port to listen on for HTTP connections
 - readTimeout
 - 
    
request read timeout
 - threads
 - 
    
number of request processing threads
 - webSocket
 - 
    
support upgrading of HTTP connections to use WebSocket protocol if true, support HTTP only if false
 
Attributes
- Constructor
 - 
    
Creates a NanoHTTPD HTTP & WebSocket server with specified effect system.
 - See also
 - Companion
 - object
 - Graph
 - 
    
 - Supertypes
 
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
 - NanoHTTPD
 - Supertypes
 - 
               trait Runnableclass Objecttrait Matchableclass Any
 
Attributes
- Inherited from:
 - NanoHTTPD
 - Supertypes
 - 
               class Objecttrait Matchableclass Any
 
Attributes
- Inherited from:
 - NanoHTTPD
 - Supertypes
 - 
               trait Iterable[String]class Objecttrait Matchableclass Any
 
Attributes
- Inherited from:
 - NanoHTTPD
 - Supertypes
 - 
               class Objecttrait Matchableclass Any
 
Attributes
- Inherited from:
 - NanoHTTPD
 - Supertypes
 - 
               trait Runnableclass Objecttrait Matchableclass Any
 
Attributes
- Inherited from:
 - NanoHTTPD
 - Supertypes
 - 
               class Objecttrait Matchableclass Any
 
Value members
Concrete methods
Stops this server transport freeing the underlying resources.
Stops this server transport freeing the underlying resources.
Attributes
- Returns
 - 
               
nothing
 - Definition Classes
 
Starts this server to process incoming requests.
Starts this server to process incoming requests.
Attributes
- Returns
 - 
               
active RPC server
 - Definition Classes
 
Create a copy of this server transport with specified RPC request handler.
Create a copy of this server transport with specified RPC request handler.
Value parameters
- handler
 - 
               
RPC request handler
 
Attributes
- Returns
 - 
               
server transport
 - Definition Classes
 
Inherited methods
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - Product
 
Attributes
- Inherited from:
 - Product
 
Attributes
- Inherited from:
 - NanoWSD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Attributes
- Inherited from:
 - NanoHTTPD
 
Inherited fields
Attributes
- Inherited from:
 - Logging (hidden)