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

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

element-options

Element options

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

  • location

    String.t()

    Required
    The URL of a request

  • method

    :post | :put | :patch

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

  • headers

    keyword

    Default value: []
    List of additional request headers in format accepted by :hackney.request/5

  • hackney_opts

    keyword

    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

Availability :always
Caps :any
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 pads descriptions for Membrane.Hackney.Sink

Returns description of options available for this module

Link to this section Types

Specs

t() :: %Membrane.Hackney.Sink{
  demand_size: any(),
  hackney_opts: keyword(),
  headers: keyword(),
  location: String.t(),
  method: :post | :put | :patch
}

Struct containing options for Membrane.Hackney.Sink

Link to this section Functions

Specs

membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.Hackney.Sink

Specs

options() :: keyword()

Returns description of options available for this module