Class ResponseDecorator

Decorater that can be used to decorate output from IJsonOutputFormatter

Inheritance
System.Object
ResponseDecorator
Namespace: EPiServer.Formatters
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public class ResponseDecorator : Object

Constructors

ResponseDecorator()

Declaration
public ResponseDecorator()

Properties

Encoding

Encoding for the response

Declaration
public Encoding Encoding { get; set; }
Property Value
Type Description
System.Text.Encoding
Remarks

Default value is System.Text.Encoding.Default

PrefixWriter

Can be used to have additional output before main response

Declaration
public Func<TextWriter, Task> PrefixWriter { get; set; }
Property Value
Type Description
System.Func<System.IO.TextWriter, System.Threading.Tasks.Task>

SuffixWriter

Can be used to have additional output after main response

Declaration
public Func<TextWriter, Task> SuffixWriter { get; set; }
Property Value
Type Description
System.Func<System.IO.TextWriter, System.Threading.Tasks.Task>

Extension Methods