libdav package

import "code.pfad.fr/gopim/webdav/libdav"

Index

func ContextWith

func ContextWithCurrentUserPrincipal

func DecodeXMLRequest

decode may be called with an empty body

type Depth

rfc4918#section-10.2 Depth Header

func DecodeDepth

DecodeDepth decodes the Depth header.

func (Depth) String

String formats the depth.

type Get

func (Get) ServeContent

func (Get) ServeList

ServeList serves an HTML list of the names. The list MUST be sorted.

type HTTPError

func NewHTTPError

if err is nil, the standard status text is used

type HandleWriter

type Handler

type MultiStatus

https://tools.ietf.org/html/rfc4918#section-14.16

func NewMultiStatus

type Overwrite

rfc4918#section-10.6 Overwrite Header

func DecodeOverwrite

DecodeOverwrite decodes the Overwrite header.

func (Overwrite) String

String formats the overwrite.

type PrincipalHandler

func (PrincipalHandler) Options

Options implements Handler.

func (PrincipalHandler) Propfind

Propfind implements Handler.

type PropStat

func (PropStat) Response

if props is nil a not-found (404) response will be returned

func (PropStat) Validate

type Propfind

rfc4918#section-14.20 only Prop, Allprop XOR Propname will be set

func DecodePropfind

func (Propfind) Response

type PropsRequest

func (PropsRequest) Names

func (PropsRequest) SubnameAttr

SubnameAttr return nil if the parent is not present, otherwise it might return an empty slice.

type Propstat

https://tools.ietf.org/html/rfc4918#section-14.22

type Report

func DecodeReport

type Request

func (Request) Children

func (Request) Path

func (Request) Segment

Segment returns the i-th element, accepting negative values (-1 to get the last element).

type Resource

type Response

https://tools.ietf.org/html/rfc4918#section-14.24

type ResponseStatus

rfc4918#section-14.28 rfc2616#section-6.1

func (ResponseStatus) MarshalText

func (*ResponseStatus) UnmarshalText

type StaticHandler

func (StaticHandler) Options

Options implements Handler.

func (StaticHandler) Propfind

Propfind implements Handler.

type StatusHandler

func (StatusHandler) Delete

Delete implements HandleWriter.

func (StatusHandler) Get

Get implements Handler.

func (StatusHandler) Options

Options implements Handler.

func (StatusHandler) Propfind

Propfind implements Handler.

func (StatusHandler) Put

Put implements HandleWriter.

func (StatusHandler) Report

Report implements Handler.

Source Files

error.go get.go headers.go propfind.go report.go request.go resource.go response.go

Directories

Path Synopsis
internal