abstract public class BaseHttpErrorHandler
Modifier and Type | Method |
---|---|
HttpServerResponse |
getNotFoundResponse()
|
HttpServerResponse |
getInternalErrorResponse(Exception ex)
|
public class DummyHttpGetHandler
Modifier and Type | Field |
---|---|
IHttpErrorHandler |
_errorHandler
|
Modifier and Type | Constructor / Static Method |
---|---|
DummyHttpGetHandler |
constructor(IHttpErrorHandler errorHandler)
|
Modifier and Type | Method |
---|---|
HttpServerResponse |
proceed(HttpServerRequest request)
|
Task<net'http'server'HttpServerResponse> |
proceedAsync(HttpServerRequest request)
|
public singleton DummyHttpHandlerFactory
Modifier and Type | Method |
---|---|
IHttpHandler |
create(String method)
|
IHttpErrorHandler |
getErrorHandler()
|
public singleton HttpErrorHandler
Modifier and Type | Method |
---|---|
HttpServerResponse |
handle(Exception ex)
|
Task<net'http'server'HttpServerResponse> |
handleAsync(Exception ex)
|
public class HttpServerRequest
Modifier and Type | Field |
---|---|
HttpBody |
_body
|
HttpFirstHeader |
_firstLine
|
HttpHeaders |
_headers
|
Modifier and Type | Constructor / Static Method |
---|---|
internal HttpServerRequest |
assign(NetworkStream stream)
|
Modifier and Type | Property |
---|---|
get String |
Protocol()
|
get String |
Method()
|
get String |
Path()
|
get HttpHeaders |
Headers()
|
Modifier and Type | Method |
---|---|
internal Task |
readHeaderAsync()
|
internal |
readHeader()
|
Task<system'String> |
readAsStringAsync()
|
String |
readAsString()
|
public class HttpServerResponse
Modifier and Type | Field |
---|---|
String |
_protocol
|
IntNumber |
_statusCode
|
String |
_statusText
|
HttpHeaders |
_headers
|
MemoryBuffer |
_buffer
|
Modifier and Type | Constructor / Static Method |
---|---|
HttpServerResponse |
new(String content)
|
HttpServerResponse |
new(system'ByteNumber[] body, IntNumber length)
|
Modifier and Type | Method |
---|---|
Task |
saveContentAsync(NetworkStream stream)
|
public class HttpsServer
Modifier and Type | Method |
---|---|
|
net@http@server@HttpsServer$$run()
|
|
start()
|
abstract public class IHttpErrorHandler
Modifier and Type | Method |
---|---|
abstract HttpServerResponse |
handle(Exception ex)
|
abstract Task<net'http'server'HttpServerResponse> |
handleAsync(Exception ex)
|
abstract HttpServerResponse |
getNotFoundResponse()
|
abstract HttpServerResponse |
getInternalErrorResponse(Exception ex)
|
abstract public class IHttpHandler
Modifier and Type | Method |
---|---|
abstract HttpServerResponse |
proceed(HttpServerRequest request)
|
abstract Task<net'http'server'HttpServerResponse> |
proceedAsync(HttpServerRequest request)
|
abstract public class IHttpHandlerFactory
Modifier and Type | Method |
---|---|
abstract IHttpHandler |
create(String method)
|
abstract IHttpErrorHandler |
getErrorHandler()
|
abstract public class IHttpServer
Modifier and Type | Method |
---|---|
abstract |
start()
|
public class SimpleHttpServer
Modifier and Type | Field |
---|---|
Thread |
_listenThread
|
TcpListener |
_listener
|
IntNumber |
_backLog
|
IHttpHandlerFactory |
_handleFactory
|
Modifier and Type | Constructor / Static Method |
---|---|
SimpleHttpServer |
create(IHttpHandlerFactory handleFactory)
|
Modifier and Type | Method |
---|---|
|
start()
|
|
net@http@server@SimpleHttpServer$$run()
|