http

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package contains realization of class for file download via HTTP protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpDownloader

type HttpDownloader struct {
}

func (*HttpDownloader) Browse

func (httpDownloader *HttpDownloader) Browse(destination *models.ParsedDestination) ([]*models.RemoteFile, error)

Not possible to implement this functionality thru HTTP protocol

func (*HttpDownloader) Download

func (httpDownloader *HttpDownloader) Download(remoteFile *models.RemoteFile) (*models.RemoteFileContent, error)

Method allows download file from remote server, store it in temporary directory and return back RemoteFileContent with io.ReadCloser for further manipulations

func (*HttpDownloader) Stat

func (httpDownloader *HttpDownloader) Stat(destination *models.ParsedDestination) (*models.RemoteFile, error)

Service method,that makes a HEAD request to remote server to get file size info

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL