View Source BunnyCDN.Client (bunny_cdn v0.1.0)

Used for providing credentials and connection details for interacting with BunnyCDN Storage API.

[BunnyCDN Storage Endpoints] https://docs.bunny.net/reference/storage-api

  • Falkenstein, DE: storage.bunnycdn.com
  • London, UK: uk.storage.bunnycdn.com
  • New York, US: ny.storage.bunnycdn.com
  • Los Angeles, US: la.storage.bunnycdn.com
  • Singapore, SG: sg.storage.bunnycdn.com
  • Stockholm, SE: se.storage.bunnycdn.com
  • São Paulo, BR: br.storage.bunnycdn.com
  • Johannesburg, SA: jh.storage.bunnycdn.com

Link to this section Summary

Link to this section Types

@type t() :: %BunnyCDN.Client{
  http_client: {module(), keyword()},
  storage_api_key: binary() | nil,
  storage_endpoint: binary() | nil,
  storage_zone: binary() | nil
}

Link to this section Functions

Link to this function

new(storage_endpoint, storage_zone, storage_api_key)

View Source
Link to this function

put_http_client(client, http_client)

View Source
Link to this function

request(client, method, url, body, headers, opts \\ [])

View Source