m
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.Extensions
|
||||
{
|
||||
// Token: 0x0200207D RID: 8317
|
||||
[Token(Token = "0x200207D")]
|
||||
public sealed class WWWAuthenticateHeaderParser : KeyValuePairList
|
||||
{
|
||||
// Token: 0x0600D0E1 RID: 53473 RVA: 0x002F7318 File Offset: 0x002F5518
|
||||
[Token(Token = "0x600D0E1")]
|
||||
[Address(RVA = "0x2A833B0", Offset = "0x2A823B0", VA = "0x182A833B0")]
|
||||
public WWWAuthenticateHeaderParser(string headerValue)
|
||||
{
|
||||
List<HeaderValue> list = this.ParseQuotedHeader(headerValue);
|
||||
this.<Values>k__BackingField = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600D0E2 RID: 53474 RVA: 0x002F733C File Offset: 0x002F553C
|
||||
[Token(Token = "0x600D0E2")]
|
||||
[Address(RVA = "0x2A83170", Offset = "0x2A82170", VA = "0x182A83170")]
|
||||
private List<HeaderValue> ParseQuotedHeader(string str)
|
||||
{
|
||||
List<HeaderValue> list = new List();
|
||||
if (str != 0)
|
||||
{
|
||||
int num = 0;
|
||||
Func<char, bool> <>9__1_ = WWWAuthenticateHeaderParser.<>c.<>9__1_0;
|
||||
if (<>9__1_ == 0)
|
||||
{
|
||||
WWWAuthenticateHeaderParser.<>c.<>9__1_0 = delegate(char ch)
|
||||
{
|
||||
if (char.IsWhiteSpace(ch))
|
||||
{
|
||||
}
|
||||
return !char.IsControl(ch);
|
||||
};
|
||||
}
|
||||
string text = Extensions.Read(str, num, <>9__1_, true).TrimAndLower();
|
||||
list.Add(new HeaderValue
|
||||
{
|
||||
<Key>k__BackingField = text
|
||||
});
|
||||
int stringLength = str.m_stringLength;
|
||||
string text3;
|
||||
string text2 = text3.TrimAndLower();
|
||||
HeaderValue headerValue = new HeaderValue();
|
||||
headerValue.<Key>k__BackingField = text2;
|
||||
str.SkipWhiteSpace(num);
|
||||
string text4 = str.ReadPossibleQuotedText(num);
|
||||
headerValue.<Value>k__BackingField = text4;
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user