Sisk

Method

BasicAuthenticateRequestHandler.CreateUnauthorizedResponse

Namespace
Sisk.BasicAuth
Assembly
Sisk.BasicAuth.dll

CreateUnauthorizedResponse(string) #

Creates an empty HTTP response with the WWW-Authenticate header and an custom realm message.

C#
public HttpResponse CreateUnauthorizedResponse(string realm)

Parameters #

realm string

Defines the realm message to send back to the client.

Returns #

HttpResponse

CreateUnauthorizedResponse() #

Creates an empty HTTP response with the WWW-Authenticate header and with the realm message defined in this class instance.

C#
public HttpResponse CreateUnauthorizedResponse()

Returns #

HttpResponse

Type to search the documentation and the API reference.