public Task<IResponse> HandleRequest(IRequest request)
        {
            IResponse response;

            if (String.Equals(request.Method, "GET", StringComparison.OrdinalIgnoreCase))
            {
                response = GetRequest(request);
            }
            else if (String.Equals(request.Method, "POST", StringComparison.OrdinalIgnoreCase))
            {
                response = PostRequest(request);
            }
            else
            {
                response = new Response(501, "Not Implemented");
            }

            return Task.FromResult(response);
        }
 public Task<IResponse> HandleRequest(IRequest request)
 {
     var response = new Response(200, "OK", null, request.AsString());
     return Task.FromResult<IResponse>(response);
 }