• User Documentation
  • Developer Guides
  • Source Reference
    Show / Hide Table of Contents
    • Downlink
      • BuilderExtensions
      • HostBuilderExtensions
      • Program
      • Startup
      • StartupExtensions
    • Downlink.AzureStorage
      • AzureStorage
      • AzureStorageExtensions
      • AzureStorageFileSource
      • ServiceCollectionExtensions
    • Downlink.AzureStorage.Strategies
      • AzureMatchStrategy
    • Downlink.Composition
      • IDownlinkPlugin
      • IPluginLoader
      • IPluginScanner
      • PluginLoader
      • PluginScanner
    • Downlink.Controllers
      • ApiController
      • ApiController.GoneResult
      • DownlinkController
    • Downlink.Core
      • CollectionExtensions
      • FileMetadata
      • IFileSource
      • IMatchStrategy<TObject>
      • IPatternMatcher
      • IRemoteStorage
      • IStreamingStorage
      • VersionSpec
    • Downlink.Core.Diagnostics
      • ArchitectureNotFoundException
      • NotFoundException
      • PlatformNotFoundException
      • VersionNotFoundException
      • VersionParseException
    • Downlink.Core.IO
      • Path
    • Downlink.Core.Runtime
      • FlatPatternMatcher
      • FlatPlatformMatcher
      • FlatVersionMatcher
      • HierarchicalPatternMatcher
      • RuntimePatternMatcher
    • Downlink.GitHub
      • ConfigurationExtensions
      • CredentialFactory
      • FlatMatchStrategy
      • GitHubCredentials
      • GitHubFileSource
      • GitHubMatchStrategy
      • IGitHubClient
      • OctokitClient
      • ServiceCollectionExtensions
    • Downlink.Handlers
      • FileSchemeClient
      • HttpDownloadClient
      • IResponseHandler
      • ISchemeClient
      • ProxyingResponseHandler
      • RedirectingResponseHandler
      • ResponseHandler
      • SchemeClient
    • Downlink.Hosting
      • DownlinkBuilder
      • DownlinkBuilderOptions
      • DownlinkContextPlugin
      • DownlinkDefaultServices
      • DownlinkRoutingPlugin
      • IDownlinkBuilder
      • IDownlinkBuilderExtensions
      • MvcBuilderExtensions
      • WebHostBuilderExtensions
    • Downlink.Infrastructure
      • ConfigurationExtensions
      • ConfigurationRoutePrefixBuilder
      • DownlinkRouteConvention
      • HttpClientExtensions
      • HttpRequestExtensions
      • IDownlinkRouteConvention
      • IRoutePrefixBuilder
      • ReflectionExtensions
      • ServiceFactory
      • StaticRoutePrefixBuilder
    • Downlink.Local
      • LocalFileMatchStrategy
      • LocalFileSource
      • LocalFileStorage
      • ServiceCollectionExtensions
    • Downlink.Messaging
      • ActionNotification
      • AppVersionRequest
      • AppVersionRequestHandler
      • AppVersionResponseModel
    • Downlink.S3
      • S3Configuration
      • S3FileSource
      • S3FileStorageFactory
      • S3MatchStrategy
      • S3SearchStorage
      • S3Storage
      • ServiceCollectionExtensions
    • Downlink.Storage
      • NoneStorage
      • ServiceCollectionExtensions

    Class HttpClientExtensions

    Inheritance
    System.Object
    HttpClientExtensions
    Namespace: Downlink.Infrastructure
    Assembly: Downlink.dll
    Syntax
    public static class HttpClientExtensions : object

    Methods

    | Improve this Doc View Source

    ReadAsFileAsync(HttpContent, String, Boolean)

    Declaration
    public static Task ReadAsFileAsync(this HttpContent content, string filename, bool overwrite)
    Parameters
    Type Name Description
    System.Net.Http.HttpContent content
    System.String filename
    System.Boolean overwrite
    Returns
    Type Description
    System.Threading.Tasks.Task
    • Improve this Doc
    • View Source
    Back to top Downlink is MIT licensed and © Alistair Chapman 2017