Class RequestTrafficLoggingOptions
Configures WebLib request traffic logging while delegating HTTP capture mechanics to ASP.NET Core HTTP Logging.
Inherited Members
Namespace: Eigenverft.WebLib.Infrastructure.Hosting.RequestTrafficLogging
Assembly: Eigenverft.WebLib.Infrastructure.dll
Syntax
public sealed class RequestTrafficLoggingOptions
Fields
| Edit this page View SourceDefaultBodyLimit
The default maximum number of body bytes retained by framework HTTP Logging.
Declaration
public const int DefaultBodyLimit = 4096
Field Value
| Type | Description |
|---|---|
| int |
Properties
| Edit this page View SourceFields
Gets or sets the enabled traffic-record field groups.
Declaration
public RequestTrafficLoggingFields Fields { get; set; }
Property Value
| Type | Description |
|---|---|
| RequestTrafficLoggingFields |
RequestBodyLimit
Gets or sets the maximum request-body bytes retained by framework HTTP Logging.
When request-body metadata is enabled, RequestBodyTotalBytes uses the request
Content-Length when known and otherwise remains unknown; RequestBodyTruncated
is only classified when that total is known.
Declaration
public int RequestBodyLimit { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RequestHeaders
Gets request header names whose values may be included when request-header capture is enabled. Other request header names remain visible with redacted values.
Declaration
public ISet<string> RequestHeaders { get; }
Property Value
| Type | Description |
|---|---|
| ISet<string> |
ResponseBodyLimit
Gets or sets the maximum response-body bytes retained by framework HTTP Logging.
When response-body metadata is enabled, ResponseBodyTotalBytes uses the response
Content-Length when known and otherwise remains unknown; ResponseBodyTruncated
is only classified when that total is known.
Declaration
public int ResponseBodyLimit { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
ResponseHeaders
Gets response header names whose values may be included when response-header capture is enabled. Other response header names remain visible with redacted values.
Declaration
public ISet<string> ResponseHeaders { get; }
Property Value
| Type | Description |
|---|---|
| ISet<string> |
SensitiveHeaders
Gets header names treated as sensitive by the selected SensitiveValueMode.
Declaration
public ISet<string> SensitiveHeaders { get; }
Property Value
| Type | Description |
|---|---|
| ISet<string> |
SensitiveValueMode
Gets or sets how configured sensitive header values are represented.
Declaration
public SensitiveValueMode SensitiveValueMode { get; set; }
Property Value
| Type | Description |
|---|---|
| SensitiveValueMode |