CalDAVEx.Client (CalDAVEx v0.2.1)

Copy Markdown View Source

CalDAV client struct used to execute requests against a server.

A Client wraps a CalDAVEx.Config and is the value threaded through every request-issuing function in the library. Prefer constructing clients via the top-level CalDAVEx.new_client/1 helper.

Summary

Types

t()

CalDAV client struct.

Functions

Builds a new client from a CalDAVEx.Config struct.

Types

t()

@type t() :: %CalDAVEx.Client{config: CalDAVEx.Config.t()}

CalDAV client struct.

Functions

new(config)

@spec new(CalDAVEx.Config.t()) :: t()

Builds a new client from a CalDAVEx.Config struct.

Parameters

Examples

config = CalDAVEx.new_config("https://caldav.example.com", CalDAVEx.no_auth())
client = CalDAVEx.Client.new(config)