Created
May 1, 2011 23:59
-
-
Save johnsheehan/951006 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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