Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created July 21, 2012 09:43
Show Gist options
  • Save hhariri/3155263 to your computer and use it in GitHub Desktop.
Save hhariri/3155263 to your computer and use it in GitHub Desktop.
void InitRequest(string uri, object query, HttpMethod method)
{
Request.Uri = !String.IsNullOrEmpty(_baseUri) ? _uriComposer.Compose(_baseUri, uri, query): uri;
Request.Data = null;
Request.PutFilename = String.Empty;
Request.Expect = false;
Request.KeepAlive = true;
Request.MultiPartFormData = null;
Request.MultiPartFileData = null;
Request.ContentEncoding = null;
Request.Method = method;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment