Class CaptchaHttpRequestExtensions
- Namespace
- NuvTools.Security.Captcha
- Assembly
- NuvTools.Security.dll
Attaches the CAPTCHA token and mode headers to an outgoing request, so the server-side filter can verify them.
public static class CaptchaHttpRequestExtensions
- Inheritance
-
CaptchaHttpRequestExtensions
- Inherited Members
Methods
AddCaptchaToken(HttpRequestMessage, string?, string?)
Adds the TokenHeader and ModeHeader headers to the request. Empty values are skipped, leaving the header absent.
public static void AddCaptchaToken(this HttpRequestMessage request, string? token, string? mode = null)
Parameters
requestHttpRequestMessageThe request to attach the headers to.
tokenstringThe token produced by the CAPTCHA provider.
modestring