gdav

Types

pub type ContactEntry {
  ContactEntry(href: String, etag: String, data: String)
}

Constructors

  • ContactEntry(href: String, etag: String, data: String)
pub type Credentials {
  Credentials(
    scheme: http.Scheme,
    port: option.Option(Int),
    host: String,
    path: String,
    auth_header: option.Option(String),
  )
}

Constructors

pub type DavError {
  AuthenticationFailed
  NotFound
  CouldNotParseXml(String)
  UnexpectedResponse(response.Response(String))
}

Constructors

  • AuthenticationFailed
  • NotFound
  • CouldNotParseXml(String)
  • UnexpectedResponse(response.Response(String))
pub type EventEntry {
  EventEntry(href: String, etag: String, data: String)
}

Constructors

  • EventEntry(href: String, etag: String, data: String)

Values

pub fn credentials(base_url: String) -> Result(Credentials, Nil)
pub fn with_basic_auth(
  credentials: Credentials,
  username: String,
  password: String,
) -> Credentials
pub fn with_bearer_auth(
  credentials: Credentials,
  token: String,
) -> Credentials
Search Document