package azblob-async

  1. Overview
  2. Docs
A trivial Azure Blob Storage interface for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.1.0.tar.gz
md5=26444ef8c1cc8ff87207730fe794105f
sha512=fb649ecaa4d8d335677cadcead11b81944b2b4502b61be63b04a7030148000d127f11ff5958ac580f448e9e64c3a0be1bbe193ca6dea4a12d9565123a8d3d590

Description

Published: 27 Nov 2019

README

Azblob -- A trivial Azure Blob Storage interface for OCaml

Usage

open! Core
open! Async
open! Cohttp
open! Cohttp_async

let example () =
  let conn = Azblob.Conn.parse_exn "<your Blob Storage connection string here>" in
  let headers = Header.of_list ["content-type", "text/plain"] in
  let path = "/your-container/your-blob.txt" in
  let body = Body.of_string "Hello, world.\n" in
  Azblob_async.put_blob conn ~headers ~path ~body
  >>= fun (_res, _body) ->
  ()

Dependencies (6)

  1. dune >= "1.11"
  2. azblob = version
  3. cohttp-async >= "2.4.0"
  4. cohttp
  5. core < "v0.15"
  6. ocaml >= "4.06.0"

Dev Dependencies

None

Used by

None

Conflicts

None