Exemplo n.º 1
0
        private static FluentRequest PrepareRequest(IHttpRequestService requestService, string url, object body = null)
        {
            Debug.Assert(requestService != null);

            var request = requestService.CreateRequest();

            request.UseUrl(url);

            if (body is null)
            {
                return(request);
            }

            return(request.WithBody().Json(body));
        }