/// <summary>
 /// Sets the location of the response to the uri's value.
 /// </summary>
 /// <param name="url">The Uri instance to convert.</param>
 /// <returns>The current instance.</returns>
 public VirtualResponse Address(Uri url)
 {
     return(Address(Url.Convert(url)));
 }
 /// <summary>
 /// Sets the location of the response to the given url.
 /// </summary>
 /// <param name="url">The imaginary url of the response.</param>
 /// <returns>The current instance.</returns>
 public VirtualResponse Address(Url url)
 {
     address = url;
     return(this);
 }
 /// <summary>
 /// Sets the location of the response to the provided address.
 /// </summary>
 /// <param name="address">The string to use as an url.</param>
 /// <returns>The current instance.</returns>
 public VirtualResponse Address(String address)
 {
     return(Address(Url.Create(address ?? String.Empty)));
 }
 /// <summary>
 /// Opens a new document loaded from the provided url asynchronously in
 /// the given context without the ability to cancel it.
 /// </summary>
 /// <param name="context">The browsing context to use.</param>
 /// <param name="url">The URL to load.</param>
 /// <returns>The task that creates the document.</returns>
 public static Task <IDocument> OpenAsync(this IBrowsingContext context, Url url)
 {
     return(context.OpenAsync(url, CancellationToken.None));
 }