Function writeFormData

Encodes the given dictionary as URL encoded form data.

Prototype

void writeFormData(R)(
  R dst,
  in string[string] data
);

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);
}

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

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