IContentTypeWriter
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IContentTypeWriter
Methods
SerializeToBytes(IRequest, Object)
View Source
Declaration
byte[] SerializeToBytes(IRequest req, object response)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
SerializeToString(IRequest, Object)
View Source
Declaration
string SerializeToString(IRequest req, object response)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
SerializeToString(IRequest, Object, String)
View Source
Declaration
string SerializeToString(IRequest req, object response, string contentType)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
System.String | contentType |
SerializeToStreamAsync(IRequest, Object, Stream)
View Source
Declaration
Task SerializeToStreamAsync(IRequest requestContext, object response, Stream toStream)
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | requestContext |
System.Object | response |
System.IO.Stream | toStream |
GetStreamSerializerAsync(String)
View Source
Declaration
StreamSerializerDelegateAsync GetStreamSerializerAsync(string contentType)
Returns
ServiceStack.Web.StreamSerializerDelegateAsync
Parameters
Type | Name |
---|---|
System.String | contentType |