File: README.md

package info (click to toggle)
golang-github-smira-go-ftp-protocol 0.0~git20140829.066b75c-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 72 kB
  • sloc: makefile: 4
file content (23 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
go-ftp-protocol
===============

Plugin for http.Transport with support for ftp:// protocol in Go.

Limitations: only anonymous FTP servers, only file retrieval operations.

Internally connections to FTP servers are cached and re-used when possible.

Example usage:

    import "github.com/smira/go-ftp-protocol/protocol"

    transport := &http.Transport{}
    transport.RegisterProtocol("ftp", &protocol.FTPRoundTripper{})

    client := &http.Client{Transport: transport}

    resp, err := client.Get("ftp://ftp.ru.debian.org/debian/README")

License: MIT

Base on FTP client library: http://github.com/jlaffaye/ftp/