Click or drag to resize

NLogRequestPostedBodyMiddlewareOptions Class

Contains the configuration for the NLogRequestPostedBodyMiddleware
Inheritance Hierarchy
SystemObject
  NLog.WebNLogRequestPostedBodyMiddlewareOptions

Namespace:  NLog.Web
Assembly:  NLog.Web.AspNetCore (in NLog.Web.AspNetCore.dll) Version: 5.5.0+9fe9421708749962bac8393d7cec5df976518ccb
Syntax
public class NLogRequestPostedBodyMiddlewareOptions

The NLogRequestPostedBodyMiddlewareOptions type exposes the following members.

Constructors
  NameDescription
Public methodNLogRequestPostedBodyMiddlewareOptions
The default constructor
Top
Properties
  NameDescription
Public propertyAllowContentTypes
Prefix and suffix values to be accepted as ContentTypes. Ex. key-prefix = "application/" and value-suffix = "json"
Public propertyMaxContentLength
The maximum request posted body size that will be captured. Defaults to 30KB.
Public propertyShouldCapture
If this returns true, the post request body will be captured Defaults to true if content length <= 30KB This can be used to capture only certain content types, only certain hosts, only below a certain request body size, and so forth
Top
See Also