Get value from RestSharp response headers
问题 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: var client = new RestClient("http://mybaseuri.com"); var request = new RestRequest("service/{id}", Method.GET); request.AddUrlSegment("id", id); // execute the request IRestResponse response = client.Execute(request); I'd like to get a value from the response headers along the lines of: string userId = response.Headers["userId"] I can't find any examples online