HybridConnectionListener.AcceptHandler Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET