Class DefaultHttpResponseFormatter.FormatInfo
- Namespace
- HotChocolate.AspNetCore.Serialization
- Assembly
- HotChocolate.AspNetCore.dll
Representation of a resolver format, containing the formatter and the content type.
protected sealed class DefaultHttpResponseFormatter.FormatInfo
- Inheritance
-
DefaultHttpResponseFormatter.FormatInfo
- Inherited Members
Constructors
FormatInfo(string, ResponseContentType, IExecutionResultFormatter)
Initializes a new instance of DefaultHttpResponseFormatter.FormatInfo.
public FormatInfo(string contentType, ResponseContentType kind, IExecutionResultFormatter formatter)
Parameters
contentType
stringkind
ResponseContentTypeformatter
IExecutionResultFormatter
Properties
ContentType
Gets the response content type.
public string ContentType { get; }
Property Value
Formatter
Gets the formatter that creates the body of the HTTP response.
public IExecutionResultFormatter Formatter { get; }
Property Value
- IExecutionResultFormatter
Kind
Gets an enum value representing well-known response content types. This prop is an optimization that helps avoiding comparing strings.
public ResponseContentType Kind { get; }