/// <summary>
        /// Internal function to prepare the request to be executed
        /// </summary>
        /// <param name="request">EasyPost request to be executed</param>
        /// <returns>RestSharp request to execute</returns>
        internal RestRequest PrepareRequest(
            EasyPostRequest request)
        {
            var restRequest = RestClient.AddAuthorizationToRequest(request);

            restRequest.AddHeader("user_agent", string.Concat("EasyPost/CSharpASync/", Version));
            restRequest.AddHeader("content_type", "application/x-www-form-urlencoded");
            return(restRequest);
        }