Packages

Elixir Azure Storage REST Client support Blob, Queue, Fileshare and TableStorage service

Current section

Files

Jump to
ex_azure_storage lib azure_storage request schema.ex
Raw

lib/azure_storage/request/schema.ex

defmodule AzureStorage.Request.Schema do
@moduledoc false
def build_options,
do: [
method: [
type: {:in, [:post, :get, :put, :delete, :merge]},
doc: "Request method",
required: true
],
path: [
type: :string,
doc: "Request path",
required: true
],
body: [
type: :string,
default: "",
doc: "Request body"
],
headers: [
type: :any,
doc: "Additional request headers",
default: %{}
]
]
def request_options,
do: [
response_body: [
type: {:in, [:full, :json]},
default: :json
]
]
end