Dela via


EmptyBodyBehavior Enum

Definition

Determines the behavior for processing empty bodies during input formatting.

public enum class EmptyBodyBehavior
public enum EmptyBodyBehavior
type EmptyBodyBehavior = 
Public Enum EmptyBodyBehavior
Inheritance
EmptyBodyBehavior

Fields

Name Value Description
Default 0

Uses the framework default behavior for processing empty bodies. This is typically configured using MvcOptions.AllowEmptyInputInBodyModelBinding.

Allow 1

Empty bodies are treated as valid inputs.

Disallow 2

Empty bodies are treated as invalid inputs.

Applies to