Dela via


IAcceptsMetadata Interface

Definition

Interface for accepting request media types.

public interface IAcceptsMetadata
type IAcceptsMetadata = interface
Public Interface IAcceptsMetadata
Derived

Properties

ContentTypes

Gets a list of the allowed request content types. If the incoming request contains a Content-Type and the content type is not one of these values, the request will be rejected with a 415 response. If the incoming request does not contain a Content-Type header, the content type check will be bypassed.

IsOptional

Gets a value that determines if the request body is optional.

RequestType

Gets the type being read from the request.

Applies to