Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Delete(path string) error
- func (c *Client) Do(req *Request) (*Response, error)
- func (c *Client) Exists(path string) (bool, error)
- func (c *Client) Features(path string) ([]string, error)
- func (c *Client) Http() *http.Client
- func (c *Client) Propfind(path string, depth Depth, pf *entities.Propfind) (*entities.Multistatus, error)
- func (c *Client) Server() *Server
- func (c *Client) ValidateServer(path string) error
- type Depth
- type Request
- type Response
- type Server
Constants ¶
View Source
const ( Depth0 Depth = "0" Depth1 = "1" DepthInfinity = "infinity" )
View Source
const (
StatusMulti = 207
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
a client for making WebDAV requests
func NewDefaultClient ¶
creates a new client for communicating with a WebDAV server uses the default HTTP client from net/http
func (*Client) Features ¶
fetches a list of WebDAV features supported by the server returns an error if the server does not support DAV
func (*Client) Propfind ¶
func (c *Client) Propfind(path string, depth Depth, pf *entities.Propfind) (*entities.Multistatus, error)
executes a PROPFIND request against the WebDAV server returns a multistatus XML entity
func (*Client) ValidateServer ¶
returns an error if the server does not support WebDAV
type Response ¶
a WebDAV response object
func NewResponse ¶
creates a new WebDAV response object
Click to show internal directories.
Click to hide internal directories.