new Form()
- Source:
Methods
addAll(map) → {Form}
Adds all the entries from another MultiMap to this one
Parameters:
Name | Type | Description |
---|---|---|
map |
MultiMap |
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Form
addAttr(name, value) → {Form}
Adds a new value with the specified name and value.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name |
value |
string | The value being added |
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Form
addFile(name, file) → {Form}
Parameters:
Name | Type | Description |
---|---|---|
name |
string | |
file |
ReadStream |
- Source:
Returns:
- Type
- Form
bilto() → {ReadStream}
- Source:
Returns:
- Type
- ReadStream
set(name, value) → {Form}
Sets a value under the specified name.
If there is an existing header with the same name, it is removed.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The name |
value |
string | The value |
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Form
setAll(map) → {Form}
Cleans this instance.
Parameters:
Name | Type | Description |
---|---|---|
map |
MultiMap |
- Source:
Returns:
a reference to this, so the API can be used fluently
- Type
- Form