Skip to content

Instantly share code, notes, and snippets.

@johnsheehan
Created May 1, 2011 23:59
Show Gist options
  • Save johnsheehan/951006 to your computer and use it in GitHub Desktop.
Save johnsheehan/951006 to your computer and use it in GitHub Desktop.
// use in webmatrix
@{
Helper.Fetch(url: "http://example.com", method: "GET");
}
@{
Helper.Fetch(url: "http://example.com", method: HttpMethod.GET); // no intellisense or build protection
}
// regular code use, not webmatrix and not 4.0
Helper.Fetch("http://example.com", HttpMethod.GET); // better if intellisense exists
Helper.Fetch("http://example.com", "GET"); // magic stringy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment