Module: Ethon::Curls::FormOptions

Included in:
Ethon::Curl
Defined in:
lib/ethon/curls/form_options.rb

Overview

This module contains the available options for forms.

Instance Method Summary collapse

Instance Method Details

#form_optionsObject

Form options, used by FormAdd for temporary storage, refer github.com/bagder/curl/blob/master/lib/formdata.h#L51 for details



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/ethon/curls/form_options.rb', line 10

def form_options
  [
    :none,
    :copyname,
    :ptrname,
    :namelength,
    :copycontents,
    :ptrcontents,
    :contentslength,
    :filecontent,
    :array,
    :obsolete,
    :file,
    :buffer,
    :bufferptr,
    :bufferlength,
    :contenttype,
    :contentheader,
    :filename,
    :end,
    :obsolete2,
    :stream,
    :last
  ]
end