Skip to main content
Version: 3.1.0

Class HttpServer

Assembly: Netly.dll
View Source
Declaration
public class HttpServer

Properties

IsOpen

View Source
Declaration
public bool IsOpen { get; }

Host

View Source
Declaration
public Uri Host { get; }

Methods

Open(Uri)

View Source
Declaration
public void Open(Uri host)
Parameters
TypeName
System.Urihost

OnOpen(Action)

View Source
Declaration
public void OnOpen(Action callback)
Parameters
TypeName
System.Actioncallback

OnError(Action<Exception>)

View Source
Declaration
public void OnError(Action<Exception> callback)
Parameters
TypeName
System.Action<System.Exception>callback

Close()

View Source
Declaration
public void Close()

OnClose(Action)

View Source
Declaration
public void OnClose(Action callback)
Parameters
TypeName
System.Actioncallback

MapAll(string, Action<Request, Response>)

View Source
Declaration
public void MapAll(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapGet(string, Action<Request, Response>)

View Source
Declaration
public void MapGet(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapPut(string, Action<Request, Response>)

View Source
Declaration
public void MapPut(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapHead(string, Action<Request, Response>)

View Source
Declaration
public void MapHead(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapPost(string, Action<Request, Response>)

View Source
Declaration
public void MapPost(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapPatch(string, Action<Request, Response>)

View Source
Declaration
public void MapPatch(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapTrace(string, Action<Request, Response>)

View Source
Declaration
public void MapTrace(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapDelete(string, Action<Request, Response>)

View Source
Declaration
public void MapDelete(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapOptions(string, Action<Request, Response>)

View Source
Declaration
public void MapOptions(string path, Action<Request, Response> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.Response>callback

MapWebSocket(string, Action<Request, WebSocketClient>)

View Source
Declaration
public void MapWebSocket(string path, Action<Request, WebSocketClient> callback)
Parameters
TypeName
System.Stringpath
System.Action<Netly.Request,Netly.WebSocketClient>callback