This file contains hidden or 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
/// <summary> | |
/// Sends an HTTP request and attempts to cancel the request as soon as | |
/// possible if requested to do so. | |
/// </summary> | |
/// <param name="request">The HTTP request to make</param> | |
/// <param name="shouldFetchContent">If given, this predicate allows you | |
/// to cancel the request based on the returned headers. Return false to | |
/// cancel reading the body</param>> | |
/// <returns>A tuple of the HTTP Response and the full message | |
/// contents.</returns> |