title: In C#, can I set some httpclienthandler properties in Restsharp?
body: <p>I have the following code in C# that uses HTTPClient and I am trying to migrate to <a href="http://restsharp.org/" rel="nofollow">RestSharp</a> to leverage the nice Derserialization code</p>
  
  <p>here is my current code:</p>
  
  <pre><code> var httpClient = new HttpClient(new HttpClientHandler()
          {
              UseDefaultCredentials = true,
              AllowAutoRedirect = false
          });
  
   var response = httpClient.GetStringAsync(myUrl).Result;
  </code></pre>
  
  <p>Here is the equivalent code using restsharp:</p>
  
  <pre><code> _client = new RestClient { BaseUrl =new Uri(myUrl) };
   var request = new RestRequest { Method = method, Resource = "/project", RequestFormat = DataFormat.Json };
   var response = _client.Execute(request);
  </code></pre>
  
  <p>but I can't figure out how to set</p>
  
  <pre><code> UseDefaultCredentials = true
  </code></pre>
  
  <p>and </p>
  
  <pre><code> AllowAutoRedirect = false
  </code></pre>
  
  <p>on the restSharp side.  Is this supported?</p>