SecureBlackbox 2020 .NET Edition

Questions / Feedback?

TraceRequest Event

Reports a TRACE request.

Syntax

public event OnTraceRequestHandler OnTraceRequest;

public delegate void OnTraceRequestHandler(object sender, RestserverTraceRequestEventArgs e);

public class RestserverTraceRequestEventArgs : EventArgs {
  public long ConnectionID { get; }
  public string URI { get; }
  public bool Handled { get; set; }
}
Public Event OnTraceRequest As OnTraceRequestHandler

Public Delegate Sub OnTraceRequestHandler(sender As Object, e As RestserverTraceRequestEventArgs)

Public Class RestserverTraceRequestEventArgs Inherits EventArgs
  Public ReadOnly Property ConnectionID As Long
  Public ReadOnly Property URI As String
  Public Property Handled As Boolean
End Class

Remarks

The component fires this event to notify the application about a TRACE request received from the client.

ConnectionID indicates the connection that sent the request and URI suggests the requested resource.

Set Handled to true to indicate that your application's code will take care of the request. The application does it by providing the necessary details via SetResponseStatus, SetResponseHeader, and SetResponseFile methods. If the returned value of Handled is false, the server will try to take care of the request automatically by searching for the requested resource in DocumentRoot.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 .NET Edition - Version 20.0 [Build 8165]