MTSC  1.0.5
Build TCP servers out of modules with handlers for communication, exception and logging.
MTSC.Common.Http.ServerModules.IHttpModule Interface Reference

Interface for Http modules used by the server http handler. More...

Inheritance diagram for MTSC.Common.Http.ServerModules.IHttpModule:
MTSC.Common.Http.ServerModules.FileServerModule MTSC.Common.Http.ServerModules.HelloWorldModule MTSC.Common.Http.ServerModules.Http404Module MTSC.Common.Http.ServerModules.PostModule

Public Member Functions

bool HandleRequest (Server.Server server, HttpHandler handler, ClientData client, HttpMessage request, ref HttpMessage response)
 Handle the received request. More...
 
void Tick (Server.Server server, HttpHandler handler)
 Perform periodic operations. More...
 

Detailed Description

Interface for Http modules used by the server http handler.

Definition at line 13 of file IHttpModule.cs.

Member Function Documentation

◆ HandleRequest()

bool MTSC.Common.Http.ServerModules.IHttpModule.HandleRequest ( Server.Server  server,
HttpHandler  handler,
ClientData  client,
HttpMessage  request,
ref HttpMessage  response 
)

Handle the received request.

Parameters
senderHandlerHandler that handled the request.
clientClient data.
requestRequest message.
Returns
True if no other module should handle the received request.

◆ Tick()

void MTSC.Common.Http.ServerModules.IHttpModule.Tick ( Server.Server  server,
HttpHandler  handler 
)

Perform periodic operations.

Parameters
handler

The documentation for this interface was generated from the following file: