vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

writeFormData - multiple declarations

Function writeFormData

Encodes the given dictionary as URL encoded form data.

void writeFormData(R) (
  R dst,
  in string[string] data
)
if (isOutputRange!(R, char));

Example

import std.array;
import vibe.core.log;
import vibe.http.form;

void test()
{
	auto dst = appender!string();
	dst.writeFormData(["field1": "value1", "field2": "value2"]);
	logInfo("Form data: %s", dst.data);
}

Function writeFormData

Encodes the given ranges of Tuple!(string, string) as URL encoded form data

void writeFormData(R, PairRange) (
  R dst,
  PairRange pr
)
if (isOutputRange!(R, char) && isTuple!(ElementType!PairRange) && (ElementType!PairRange.length == 2));
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.