Exemple #1
0
        public IHttpResponse Respond(HttpCall call)
        {
            if (WillRespond(call))
            {
                return(InternalRespond(call));
            }

            return(_nextResponder.Respond(call));
        }
Exemple #2
0
        virtual public IHttpResponse ProcessCall(INetworkStreamWrapper socketWrapper)
        {
            _socketWrapper = socketWrapper;
            _socketWrapper.SkipByteCount(_verbLength + 1);

            var httpCall = new HttpCall()
            {
                ServerSettings = ServerSettings,
                RequestHeader  = GetHeaderFromSocket(),
                RawRequestBody = GetRequestBodyFromSocket()
            };

            return(_firstCallResponder.Respond(httpCall));
        }