INTERFACE IServerHandlers

Handle server requests

Public Methods

Check

 bool Check(Uri requestPath)

Check if the condition is met to handle the request

Parameters:

  • requestPath (Uri)

Returns: bool

Handle

 Task<string> Handle(IHttpListenerResponse response, Uri requestPath, DateTime serverStartTime)

Process the request

Parameters:

  • response (IHttpListenerResponse)
  • requestPath (Uri)
  • serverStartTime (DateTime)

Returns: Task<string>