Renamed ResponseEventArgs.cs to HttpRequestEventArgs.cs, and modified Ext.cs, HttpServer.cs
This commit is contained in:
Binary file not shown.
@@ -16,9 +16,9 @@ namespace Example3
|
||||
_httpsv.AddWebSocketService<Echo>("/Echo");
|
||||
_httpsv.AddWebSocketService<Chat>("/Chat");
|
||||
|
||||
_httpsv.OnResponseToGet += (sender, e) =>
|
||||
_httpsv.OnGet += (sender, e) =>
|
||||
{
|
||||
onResponseToGet(e);
|
||||
onGet(e);
|
||||
};
|
||||
|
||||
_httpsv.OnError += (sender, e) =>
|
||||
@@ -46,7 +46,7 @@ namespace Example3
|
||||
return _httpsv.GetFile(path);
|
||||
}
|
||||
|
||||
private static void onResponseToGet(ResponseEventArgs eventArgs)
|
||||
private static void onGet(HttpRequestEventArgs eventArgs)
|
||||
{
|
||||
var request = eventArgs.Request;
|
||||
var response = eventArgs.Response;
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user