View Source Membrane.Hackney.Sink (Membrane Hackney plugin v0.11.0)
An element uploading data over HTTP(S) based on Hackney
Element options
Passed via struct Membrane.Hackney.Sink.t/0
location
any
Required
The URL of a requestmethod
:post | :put | :patch
Default value:
:post
HTTP method that will be used when making a requestheaders
any
Default value:
[]
List of additional request headers in format accepted by:hackney.request/5
hackney_opts
any
Default value:
[]
Additional options for Hackney in format accepted by:hackney.request/5
demand_size
any
Default value:
1024
The size of the demand made after each write
Pads
:input
Accepted formats:
_any
Direction: | :input |
Availability: | :always |
Flow control: | :manual |
Demand unit: | :bytes |
Summary
Types
Struct containing options for Membrane.Hackney.Sink
Types
@type t() :: %Membrane.Hackney.Sink{ demand_size: any(), hackney_opts: any(), headers: any(), location: any(), method: :post | :put | :patch }
Struct containing options for Membrane.Hackney.Sink
Functions
@spec options() :: keyword()
Returns description of options available for this module