View Source Membrane.Hackney.Sink (Membrane Hackney plugin v0.9.0)

An element uploading data over HTTP(S) based on Hackney

element-options

Element options

Passed via struct Membrane.Hackney.Sink.t/0

  • location

    any

    Required
    The URL of a request

  • method

    :post | :put | :patch

    Default value: :post
    HTTP method that will be used when making a request

  • headers

    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

Pads

input

:input

Accepted formats

_any

Availability :always
Demand mode :manual
Demand unit :bytes
Direction :input
Mode :pull
Name :input

Link to this section Summary

Types

t()

Struct containing options for Membrane.Hackney.Sink

Functions

Returns description of options available for this module

Link to this section 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

Link to this section Functions

@spec options() :: keyword()

Returns description of options available for this module