client

package module
v0.0.0-...-0665042 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2016 License: MIT Imports: 5 Imported by: 0

README

go-webdav-client

A WebDAV client written in Go

Documentation

Overview

Package client implements a WebDAV client, as defined in RFC 4918.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

A WebDAV client.

func New

func New(root string) *Client

Create a new WebDAV client. root is the WebDAV server URL.

func (*Client) Do

func (c *Client) Do(req *http.Request) (res *http.Response, err error)

Perform a HTTP request.

This function should only be used by packages implementing extensions of WebDAV.

func (*Client) Mkdir

func (c *Client) Mkdir(name string) (err error)

func (*Client) NewRequest

func (c *Client) NewRequest(method, name string) (req *http.Request, err error)

Create a new HTTP request.

This function should only be used by packages implementing extensions of WebDAV.

func (*Client) OpenFile

func (c *Client) OpenFile(name string) (f webdav.File, err error)

Jump to

Keyboard shortcuts

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