Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkazuo/azblob

A trivial Azure Blob Storage interface for OCaml
https://github.com/kkazuo/azblob

azure ocaml storage

Last synced: 26 days ago
JSON representation

A trivial Azure Blob Storage interface for OCaml

Awesome Lists containing this project

README

        

# Azblob -- A trivial Azure Blob Storage interface for OCaml

You can get, put, append and delete blobs.

We use Azure Blob REST API,
and this library depends as small as possible
and provides raw http response.

You can also reads [Azure Blob Storage API](https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-rest-api).

## Usage

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

let example () =
let conn = Azblob.Conn.parse_exn "" 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) ->
()
```