/// <summary>
        /// We've received a HTTP request.
        /// </summary>
        /// <param name="request">HTTP request</param>
        /// <exception cref="System.ArgumentNullException">message</exception>
        public override void OnRequest(IRequest request)
        {
            var context = new WebServer.HttpContext
            {
                Application = _configuration.Application,
                Items       = new MemoryItemStorage(),
                Request     = request,
                Response    = request.CreateResponse(HttpStatusCode.OK, "Okey dokie")
            };

            context.Response.AddHeader("X-Powered-By",
                                       "Griffin.Networking (http://github.com/jgauffin/griffin.networking)");


            _configuration.ModuleManager.InvokeAsync(context, SendResponse);
        }
        /// <summary>
        /// We've received a HTTP request.
        /// </summary>
        /// <param name="request">HTTP request</param>
        /// <exception cref="System.ArgumentNullException">message</exception>
        public override void OnRequest(IRequest request)
        {
            var context = new WebServer.HttpContext
                {
                    Application = _configuration.Application,
                    Items = new MemoryItemStorage(),
                    Request = request,
                    Response = request.CreateResponse(HttpStatusCode.OK, "Okey dokie")
                };

            context.Response.AddHeader("X-Powered-By",
                                       "Griffin.Networking (http://github.com/jgauffin/griffin.networking)");


            _configuration.ModuleManager.InvokeAsync(context, SendResponse);
        }
        /// <summary>
        /// A new message have been received from the remote end.
        /// </summary>
        /// <param name="message"></param>
        /// <remarks>You'll receive <see cref="IRequest"/> or <see cref="IResponse"/> depending on the type of application.</remarks>
        public override void HandleReceive(object message)
        {
            if (message == null) throw new ArgumentNullException("message");
            var context = new WebServer.HttpContext
                {
                    Application = _configuration.Application,
                    Items = new MemoryItemStorage(),
                    Request = (IRequest) message,
                    Response = ((IRequest) message).CreateResponse(HttpStatusCode.OK, "Okey dokie")
                };

            context.Response.AddHeader("X-Powered-By",
                                       "Griffin.Networking (http://github.com/jgauffin/griffin.networking)");


            _configuration.ModuleManager.InvokeAsync(context, SendResponse);
        }