vibe.d beta banner
get vibe.d
0.10.0

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

Function contentType

Attribute to define the content type for methods.

vibe.web.common.ContentTypeAttribute contentType (
  string data
) @safe;

This currently applies only to methods returning an InputStream or ubyte[].

Authors

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

Copyright

© 2012-2017 Sönke Ludwig

License

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