Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created December 3, 2017 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/00096d482748ccff0a55f0d53a696f2c to your computer and use it in GitHub Desktop.
Save angelovstanton/00096d482748ccff0a55f0d53a696f2c to your computer and use it in GitHub Desktop.
private async Task OnRequestBlockResourceEventHandler(object sender, SessionEventArgs e)
{
if (e.WebSession.Request.RequestUri.ToString().Contains("analytics"))
{
string customBody = string.Empty;
await e.Ok(Encoding.UTF8.GetBytes(customBody));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment