HybridConnectionListener.AcceptHandler Property

Definition

Allows installing a custom handler which can inspect request headers, control response headers, decide whether to accept or reject a web-socket upgrade request, and control the status code/description if rejecting. The AcceptHandler should return true to accept a client request or false to reject.

public Func<Microsoft.Azure.Relay.RelayedHttpListenerContext,System.Threading.Tasks.Task<bool>> AcceptHandler { get; set; }
member this.AcceptHandler : Func<Microsoft.Azure.Relay.RelayedHttpListenerContext, System.Threading.Tasks.Task<bool>> with get, set
Public Property AcceptHandler As Func(Of RelayedHttpListenerContext, Task(Of Boolean))

Property Value

Applies to