Skip to content

Instantly share code, notes, and snippets.

@ByteDev
Created July 16, 2021 09:43
Show Gist options
  • Save ByteDev/51a55a3b2f18973dc28ff2e6e2fd93cb to your computer and use it in GitHub Desktop.
Save ByteDev/51a55a3b2f18973dc28ff2e6e2fd93cb to your computer and use it in GitHub Desktop.
var request = new HttpRequestMessage(HttpMethod.Get, "api/orders");

var mt = new MediaTypeWithQualityHeaderValue("application/json");

request.Headers.Accept.Add(mt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment