コード例 #1
0
        public SillyHttpResponse(SillyHttpStatusCode code, Byte[] payload, string mimeType)
        {
            Version = "HTTP/1.1";
            Payload = payload;

            _proxy = new SillyProxyResponse();
            _proxy.headers.ContentType = mimeType;
        }
コード例 #2
0
        public override SillyProxyResponse Handle(SillyProxyRequest input, ILambdaContext lambdaContext)
        {
            Stopwatch timer = new Stopwatch();

            timer.Start();

            SillyProxyResponse response = base.Handle(input, lambdaContext);

            timer.Stop();

            response.body += "<p>Total Lambda Time -> " + timer.Elapsed.TotalMilliseconds + "ms</p>";

            return(response);
        }