public static async Task <HttpResponseMessage> Get(string requestUri)
        {
            var builder = new HttpClientRequestBuilder()
                          .AddMethod(HttpMethod.Get)
                          .AddRequestUri(requestUri);

            return(await builder.SendAsync());
        }
        public static async Task <HttpResponseMessage> Delete(
            string requestUri, ITokenCreater tokenCreator)
        {
            var builder = new HttpClientRequestBuilder()
                          .AddMethod(HttpMethod.Delete)
                          .AddRequestUri(requestUri)
                          .AddTokenCreator(tokenCreator);

            return(await builder.SendAsync());
        }
        public static async Task <HttpResponseMessage> Patch(
            string requestUri, object value, ITokenCreater tokenCreator)
        {
            var builder = new HttpClientRequestBuilder()
                          .AddMethod(new HttpMethod("PATCH"))
                          .AddRequestUri(requestUri)
                          .AddContent(new PatchContent(value))
                          .AddTokenCreator(tokenCreator);

            return(await builder.SendAsync());
        }
        public static async Task <HttpResponseMessage> Get(string requestUri, Dictionary <string, string> headers)
        {
            var builder = new HttpClientRequestBuilder()
                          .AddMethod(HttpMethod.Get)
                          .AddRequestUri(requestUri)
                          .AddHeaders(headers);

            //.AddTokenCreator(tokenCreator);

            return(await builder.SendAsync());
        }
        public static async Task <HttpResponseMessage> PostFile(string requestUri,
                                                                string filePath, string apiParamName, ITokenCreater tokenCreator)
        {
            var builder = new HttpClientRequestBuilder()
                          .AddMethod(HttpMethod.Post)
                          .AddRequestUri(requestUri)
                          .AddContent(new FileContent(filePath, apiParamName))
                          .AddTokenCreator(tokenCreator);

            return(await builder.SendAsync());
        }