Doc/Codecs/MediaTypeWriter

Implementing IMediaTypeWriter

Implement IMediaTypeWriter when you wish to implement one half of a codec (the "encoder" part) which writes to a stream in response to some HTTP request. This means implementing two things:

public void WriteTo(object entity, IHttpEntity response, string[] parameters)

Write the object entity to response.Stream to serialize the object.

See also