Skip to content

Instantly share code, notes, and snippets.

@lenadroid
Last active August 29, 2015 14:19
Show Gist options
  • Save lenadroid/6a20aa638cda0e72674f to your computer and use it in GitHub Desktop.
Save lenadroid/6a20aa638cda0e72674f to your computer and use it in GitHub Desktop.
F# in the cloud
let getContentLength (url : string) = async {
let request = HttpWebRequest.Create(url)
let! response = request.AsyncGetResponse()
return response.ContentLength
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment