







![]() ![]() |
C# Webserver |
DigestAuthentication..::.Decode Method |
DigestAuthentication Class Example See Also Send Feedback |
Decodes authorization header value
Namespace:
HttpServer.Authentication
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static NameValueCollection Decode( string buffer, Encoding encoding ) |
Visual Basic (Declaration) |
---|
Public Shared Function Decode ( _ buffer As String, _ encoding As Encoding _ ) As NameValueCollection |
Visual C++ |
---|
public: static NameValueCollection^ Decode( String^ buffer, Encoding^ encoding ) |
Parameters
- buffer
- Type: System..::.String
header value
- encoding
- Type: System.Text..::.Encoding
Encoding that the buffer is in
Return Value
All headers and their values if successful; otherwise null
Remarks
Can handle lots of whitespaces and new lines without failing.
Examples
NameValueCollection header = DigestAuthentication.Decode("response=\"6629fae49393a05397450978507c4ef1\",\r\nc=00001", Encoding.ASCII);