vibe.d beta banner
get vibe.d
0.8.0

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

Function bodyParam

Declare that a parameter will be transmitted to the API through the body.

vibe.web.common.WebParamAttribute bodyParam (
  string identifier,
  string field
) @safe;

vibe.web.common.WebParamAttribute bodyParam (
  string identifier
) @safe;

It will be serialized as part of a JSON object. The serialization format is currently not customizable. If no fieldname is given, the entire body is serialized into the object.

Parameters

NameDescription
Authors

Sönke Ludwig, Михаил Страшун

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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