vibe.d beta banner
get vibe.d

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


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",;

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

Sönke Ludwig, Jan Krüger


© 2012-2015 Sönke Ludwig


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