title: Get value from RestSharp response headers
body: <p>I'm hoping someone can help with an issue I'm having with RestSharp. It's all working; I'm getting my reply using the following code:</p>
  <pre><code>var client = new RestClient(&quot;http://mybaseuri.com&quot;);
  var request = new RestRequest(&quot;service/{id}&quot;, Method.GET);
  request.AddUrlSegment(&quot;id&quot;, id);
      
  // execute the request
  IRestResponse response = client.Execute(request);
  </code></pre>
  <p>I'd like to get a value from the response headers along the lines of:</p>
  <pre><code>string userId = response.Headers[&quot;userId&quot;]
  </code></pre>
  <p>I can't find any examples online, can anyone help get a value from the <code>response.Headers</code> object which is of type <code>IList&lt;parameter&gt;</code>?</p>
  <p>I'm not looking to iterate the entire collection, just extract a single value by name.</p>