1928 lines
78 KiB
C#
1928 lines
78 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
using System.Text;
|
|
using BestHTTP.Authentication;
|
|
using BestHTTP.Cookies;
|
|
using BestHTTP.Extensions;
|
|
using BestHTTP.Forms;
|
|
using BestHTTP.Logger;
|
|
using Cpp2IlInjected;
|
|
using Hjg.Pngcs.Chunks;
|
|
using Org.BouncyCastle.Crypto.Tls;
|
|
|
|
namespace BestHTTP
|
|
{
|
|
// Token: 0x020018A2 RID: 6306
|
|
[Token(Token = "0x20018A2")]
|
|
public sealed class HTTPRequest : IEnumerator, IEnumerator<HTTPRequest>, IDisposable
|
|
{
|
|
// Token: 0x1700175F RID: 5983
|
|
// (get) Token: 0x060093A9 RID: 37801 RVA: 0x001E5438 File Offset: 0x001E3638
|
|
// (set) Token: 0x060093AA RID: 37802 RVA: 0x001E544C File Offset: 0x001E364C
|
|
[Token(Token = "0x1700175F")]
|
|
public Uri Uri
|
|
{
|
|
[Token(Token = "0x60093A9")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get;
|
|
[Token(Token = "0x60093AA")]
|
|
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001760 RID: 5984
|
|
// (get) Token: 0x060093AB RID: 37803 RVA: 0x001E5460 File Offset: 0x001E3660
|
|
// (set) Token: 0x060093AC RID: 37804 RVA: 0x001E5474 File Offset: 0x001E3674
|
|
[Token(Token = "0x17001760")]
|
|
public HTTPMethods MethodType
|
|
{
|
|
[Token(Token = "0x60093AB")]
|
|
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
|
|
get;
|
|
[Token(Token = "0x60093AC")]
|
|
[Address(RVA = "0x43DE90", Offset = "0x43CC90", VA = "0x18043DE90")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001761 RID: 5985
|
|
// (get) Token: 0x060093AD RID: 37805 RVA: 0x001E5488 File Offset: 0x001E3688
|
|
// (set) Token: 0x060093AE RID: 37806 RVA: 0x001E549C File Offset: 0x001E369C
|
|
[Token(Token = "0x17001761")]
|
|
public byte[] RawData
|
|
{
|
|
[Token(Token = "0x60093AD")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get;
|
|
[Token(Token = "0x60093AE")]
|
|
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001762 RID: 5986
|
|
// (get) Token: 0x060093AF RID: 37807 RVA: 0x001E54B0 File Offset: 0x001E36B0
|
|
// (set) Token: 0x060093B0 RID: 37808 RVA: 0x001E54C4 File Offset: 0x001E36C4
|
|
[Token(Token = "0x17001762")]
|
|
public Stream UploadStream
|
|
{
|
|
[Token(Token = "0x60093AF")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
|
get;
|
|
[Token(Token = "0x60093B0")]
|
|
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001763 RID: 5987
|
|
// (get) Token: 0x060093B1 RID: 37809 RVA: 0x001E54D8 File Offset: 0x001E36D8
|
|
// (set) Token: 0x060093B2 RID: 37810 RVA: 0x001E54EC File Offset: 0x001E36EC
|
|
[Token(Token = "0x17001763")]
|
|
public bool DisposeUploadStream
|
|
{
|
|
[Token(Token = "0x60093B1")]
|
|
[Address(RVA = "0x4364F0", Offset = "0x4352F0", VA = "0x1804364F0")]
|
|
get;
|
|
[Token(Token = "0x60093B2")]
|
|
[Address(RVA = "0x436790", Offset = "0x435590", VA = "0x180436790")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001764 RID: 5988
|
|
// (get) Token: 0x060093B3 RID: 37811 RVA: 0x001E5500 File Offset: 0x001E3700
|
|
// (set) Token: 0x060093B4 RID: 37812 RVA: 0x001E5514 File Offset: 0x001E3714
|
|
[Token(Token = "0x17001764")]
|
|
public bool UseUploadStreamLength
|
|
{
|
|
[Token(Token = "0x60093B3")]
|
|
[Address(RVA = "0x4364D0", Offset = "0x4352D0", VA = "0x1804364D0")]
|
|
get;
|
|
[Token(Token = "0x60093B4")]
|
|
[Address(RVA = "0x436770", Offset = "0x435570", VA = "0x180436770")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001765 RID: 5989
|
|
// (get) Token: 0x060093B5 RID: 37813 RVA: 0x001E5528 File Offset: 0x001E3728
|
|
// (set) Token: 0x060093B6 RID: 37814 RVA: 0x001E553C File Offset: 0x001E373C
|
|
[Token(Token = "0x17001765")]
|
|
public bool IsKeepAlive
|
|
{
|
|
[Token(Token = "0x60093B5")]
|
|
[Address(RVA = "0x1723210", Offset = "0x1722010", VA = "0x181723210")]
|
|
get
|
|
{
|
|
return this.isKeepAlive;
|
|
}
|
|
[Token(Token = "0x60093B6")]
|
|
[Address(RVA = "0x1723640", Offset = "0x1722440", VA = "0x181723640")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093B6)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::set_IsKeepAlive(System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_11:
|
|
stloc:NotSupportedException(var_0_1B, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Changing the IsKeepAlive property while processing the request is not supported.")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001766 RID: 5990
|
|
// (get) Token: 0x060093B7 RID: 37815 RVA: 0x001E5564 File Offset: 0x001E3764
|
|
// (set) Token: 0x060093B8 RID: 37816 RVA: 0x001E5578 File Offset: 0x001E3778
|
|
[Token(Token = "0x17001766")]
|
|
public bool DisableCache
|
|
{
|
|
[Token(Token = "0x60093B7")]
|
|
[Address(RVA = "0xA83900", Offset = "0xA82700", VA = "0x180A83900")]
|
|
get
|
|
{
|
|
return this.disableCache;
|
|
}
|
|
[Token(Token = "0x60093B8")]
|
|
[Address(RVA = "0x17235A0", Offset = "0x17223A0", VA = "0x1817235A0")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093B8)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::set_DisableCache(System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_11:
|
|
stloc:NotSupportedException(var_0_1B, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Changing the DisableCache property while processing the request is not supported.")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001767 RID: 5991
|
|
// (get) Token: 0x060093B9 RID: 37817 RVA: 0x001E55A0 File Offset: 0x001E37A0
|
|
// (set) Token: 0x060093BA RID: 37818 RVA: 0x001E55B4 File Offset: 0x001E37B4
|
|
[Token(Token = "0x17001767")]
|
|
public bool CacheOnly
|
|
{
|
|
[Token(Token = "0x60093B9")]
|
|
[Address(RVA = "0x1723160", Offset = "0x1721F60", VA = "0x181723160")]
|
|
get
|
|
{
|
|
return this.cacheOnly;
|
|
}
|
|
[Token(Token = "0x60093BA")]
|
|
[Address(RVA = "0x1723520", Offset = "0x1722320", VA = "0x181723520")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093BA)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::set_CacheOnly(System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_11:
|
|
stloc:NotSupportedException(var_0_1B, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Changing the CacheOnly property while processing the request is not supported.")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001768 RID: 5992
|
|
// (get) Token: 0x060093BB RID: 37819 RVA: 0x001E55DC File Offset: 0x001E37DC
|
|
// (set) Token: 0x060093BC RID: 37820 RVA: 0x001E55F0 File Offset: 0x001E37F0
|
|
[Token(Token = "0x17001768")]
|
|
public bool UseStreaming
|
|
{
|
|
[Token(Token = "0x60093BB")]
|
|
[Address(RVA = "0x16F7CF0", Offset = "0x16F6AF0", VA = "0x1816F7CF0")]
|
|
get
|
|
{
|
|
return this.useStreaming;
|
|
}
|
|
[Token(Token = "0x60093BC")]
|
|
[Address(RVA = "0x17237A0", Offset = "0x17225A0", VA = "0x1817237A0")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093BC)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::set_UseStreaming(System.Boolean)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_11:
|
|
stloc:NotSupportedException(var_0_1B, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Changing the UseStreaming property while processing the request is not supported.")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001769 RID: 5993
|
|
// (get) Token: 0x060093BD RID: 37821 RVA: 0x001E5618 File Offset: 0x001E3818
|
|
// (set) Token: 0x060093BE RID: 37822 RVA: 0x001E562C File Offset: 0x001E382C
|
|
[Token(Token = "0x17001769")]
|
|
public int StreamFragmentSize
|
|
{
|
|
[Token(Token = "0x60093BD")]
|
|
[Address(RVA = "0x60CA70", Offset = "0x60B870", VA = "0x18060CA70")]
|
|
get
|
|
{
|
|
return this.streamFragmentSize;
|
|
}
|
|
[Token(Token = "0x60093BE")]
|
|
[Address(RVA = "0x17236F0", Offset = "0x17224F0", VA = "0x1817236F0")]
|
|
set
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (060093BE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::set_StreamFragmentSize(System.Int32)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_11:
|
|
stloc:NotSupportedException(var_0_1B, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Changing the StreamFragmentSize property while processing the request is not supported.")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700176A RID: 5994
|
|
// (get) Token: 0x060093BF RID: 37823 RVA: 0x001E5654 File Offset: 0x001E3854
|
|
// (set) Token: 0x060093C0 RID: 37824 RVA: 0x001E5668 File Offset: 0x001E3868
|
|
[Token(Token = "0x1700176A")]
|
|
public int MaxFragmentQueueLength
|
|
{
|
|
[Token(Token = "0x60093BF")]
|
|
[Address(RVA = "0x3F63F0", Offset = "0x3F51F0", VA = "0x1803F63F0")]
|
|
get;
|
|
[Token(Token = "0x60093C0")]
|
|
[Address(RVA = "0x445D00", Offset = "0x444B00", VA = "0x180445D00")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700176B RID: 5995
|
|
// (get) Token: 0x060093C1 RID: 37825 RVA: 0x001E567C File Offset: 0x001E387C
|
|
// (set) Token: 0x060093C2 RID: 37826 RVA: 0x001E5690 File Offset: 0x001E3890
|
|
[Token(Token = "0x1700176B")]
|
|
public OnRequestFinishedDelegate Callback
|
|
{
|
|
[Token(Token = "0x60093C1")]
|
|
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170")]
|
|
get;
|
|
[Token(Token = "0x60093C2")]
|
|
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700176C RID: 5996
|
|
// (get) Token: 0x060093C3 RID: 37827 RVA: 0x001E56A4 File Offset: 0x001E38A4
|
|
// (set) Token: 0x060093C4 RID: 37828 RVA: 0x001E56B8 File Offset: 0x001E38B8
|
|
[Token(Token = "0x1700176C")]
|
|
public bool DisableRetry
|
|
{
|
|
[Token(Token = "0x60093C3")]
|
|
[Address(RVA = "0x535D20", Offset = "0x534B20", VA = "0x180535D20")]
|
|
get;
|
|
[Token(Token = "0x60093C4")]
|
|
[Address(RVA = "0x536540", Offset = "0x535340", VA = "0x180536540")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700176D RID: 5997
|
|
// (get) Token: 0x060093C5 RID: 37829 RVA: 0x001E56CC File Offset: 0x001E38CC
|
|
// (set) Token: 0x060093C6 RID: 37830 RVA: 0x001E56E0 File Offset: 0x001E38E0
|
|
[Token(Token = "0x1700176D")]
|
|
public bool IsRedirected
|
|
{
|
|
[Token(Token = "0x60093C5")]
|
|
[Address(RVA = "0x774990", Offset = "0x773790", VA = "0x180774990")]
|
|
get;
|
|
[Token(Token = "0x60093C6")]
|
|
[Address(RVA = "0x5E1250", Offset = "0x5E0050", VA = "0x1805E1250")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x1700176E RID: 5998
|
|
// (get) Token: 0x060093C7 RID: 37831 RVA: 0x001E56F4 File Offset: 0x001E38F4
|
|
// (set) Token: 0x060093C8 RID: 37832 RVA: 0x001E5708 File Offset: 0x001E3908
|
|
[Token(Token = "0x1700176E")]
|
|
public Uri RedirectUri
|
|
{
|
|
[Token(Token = "0x60093C7")]
|
|
[Address(RVA = "0x423E10", Offset = "0x422C10", VA = "0x180423E10")]
|
|
get;
|
|
[Token(Token = "0x60093C8")]
|
|
[Address(RVA = "0x687270", Offset = "0x686070", VA = "0x180687270")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x1700176F RID: 5999
|
|
// (get) Token: 0x060093C9 RID: 37833 RVA: 0x001E571C File Offset: 0x001E391C
|
|
[Token(Token = "0x1700176F")]
|
|
public Uri CurrentUri
|
|
{
|
|
[Token(Token = "0x60093C9")]
|
|
[Address(RVA = "0x17231E0", Offset = "0x1721FE0", VA = "0x1817231E0")]
|
|
get
|
|
{
|
|
if (this.<IsRedirected>k__BackingField)
|
|
{
|
|
return this.<RedirectUri>k__BackingField;
|
|
}
|
|
return this.<Uri>k__BackingField;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001770 RID: 6000
|
|
// (get) Token: 0x060093CA RID: 37834 RVA: 0x001E5740 File Offset: 0x001E3940
|
|
// (set) Token: 0x060093CB RID: 37835 RVA: 0x001E5754 File Offset: 0x001E3954
|
|
[Token(Token = "0x17001770")]
|
|
public HTTPResponse Response
|
|
{
|
|
[Token(Token = "0x60093CA")]
|
|
[Address(RVA = "0x4335D0", Offset = "0x4323D0", VA = "0x1804335D0")]
|
|
get;
|
|
[Token(Token = "0x60093CB")]
|
|
[Address(RVA = "0x703580", Offset = "0x702380", VA = "0x180703580")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x17001771 RID: 6001
|
|
// (get) Token: 0x060093CC RID: 37836 RVA: 0x001E5768 File Offset: 0x001E3968
|
|
// (set) Token: 0x060093CD RID: 37837 RVA: 0x001E577C File Offset: 0x001E397C
|
|
[Token(Token = "0x17001771")]
|
|
public HTTPResponse ProxyResponse
|
|
{
|
|
[Token(Token = "0x60093CC")]
|
|
[Address(RVA = "0x4391F0", Offset = "0x437FF0", VA = "0x1804391F0")]
|
|
get;
|
|
[Token(Token = "0x60093CD")]
|
|
[Address(RVA = "0x7D58F0", Offset = "0x7D46F0", VA = "0x1807D58F0")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x17001772 RID: 6002
|
|
// (get) Token: 0x060093CE RID: 37838 RVA: 0x001E5790 File Offset: 0x001E3990
|
|
// (set) Token: 0x060093CF RID: 37839 RVA: 0x001E57A4 File Offset: 0x001E39A4
|
|
[Token(Token = "0x17001772")]
|
|
public Exception Exception
|
|
{
|
|
[Token(Token = "0x60093CE")]
|
|
[Address(RVA = "0x567CE0", Offset = "0x566AE0", VA = "0x180567CE0")]
|
|
get;
|
|
[Token(Token = "0x60093CF")]
|
|
[Address(RVA = "0x567D20", Offset = "0x566B20", VA = "0x180567D20")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x17001773 RID: 6003
|
|
// (get) Token: 0x060093D0 RID: 37840 RVA: 0x001E57B8 File Offset: 0x001E39B8
|
|
// (set) Token: 0x060093D1 RID: 37841 RVA: 0x001E57CC File Offset: 0x001E39CC
|
|
[Token(Token = "0x17001773")]
|
|
public object Tag
|
|
{
|
|
[Token(Token = "0x60093D0")]
|
|
[Address(RVA = "0x44EC80", Offset = "0x44DA80", VA = "0x18044EC80")]
|
|
get;
|
|
[Token(Token = "0x60093D1")]
|
|
[Address(RVA = "0x567D10", Offset = "0x566B10", VA = "0x180567D10")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001774 RID: 6004
|
|
// (get) Token: 0x060093D2 RID: 37842 RVA: 0x001E57E0 File Offset: 0x001E39E0
|
|
// (set) Token: 0x060093D3 RID: 37843 RVA: 0x001E57F4 File Offset: 0x001E39F4
|
|
[Token(Token = "0x17001774")]
|
|
public Credentials Credentials
|
|
{
|
|
[Token(Token = "0x60093D2")]
|
|
[Address(RVA = "0x44EC40", Offset = "0x44DA40", VA = "0x18044EC40")]
|
|
get;
|
|
[Token(Token = "0x60093D3")]
|
|
[Address(RVA = "0x6A2D60", Offset = "0x6A1B60", VA = "0x1806A2D60")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001775 RID: 6005
|
|
// (get) Token: 0x060093D4 RID: 37844 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x17001775")]
|
|
public bool HasProxy
|
|
{
|
|
[Token(Token = "0x60093D4")]
|
|
[Address(RVA = "0x1723200", Offset = "0x1722000", VA = "0x181723200")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001776 RID: 6006
|
|
// (get) Token: 0x060093D5 RID: 37845 RVA: 0x001E5808 File Offset: 0x001E3A08
|
|
// (set) Token: 0x060093D6 RID: 37846 RVA: 0x001E581C File Offset: 0x001E3A1C
|
|
[Token(Token = "0x17001776")]
|
|
public Proxy Proxy
|
|
{
|
|
[Token(Token = "0x60093D5")]
|
|
[Address(RVA = "0x46AA30", Offset = "0x469830", VA = "0x18046AA30")]
|
|
get;
|
|
[Token(Token = "0x60093D6")]
|
|
[Address(RVA = "0x7A45D0", Offset = "0x7A33D0", VA = "0x1807A45D0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001777 RID: 6007
|
|
// (get) Token: 0x060093D7 RID: 37847 RVA: 0x001E5830 File Offset: 0x001E3A30
|
|
// (set) Token: 0x060093D8 RID: 37848 RVA: 0x001E5844 File Offset: 0x001E3A44
|
|
[Token(Token = "0x17001777")]
|
|
public int MaxRedirects
|
|
{
|
|
[Token(Token = "0x60093D7")]
|
|
[Address(RVA = "0x9F6FE0", Offset = "0x9F5DE0", VA = "0x1809F6FE0")]
|
|
get;
|
|
[Token(Token = "0x60093D8")]
|
|
[Address(RVA = "0x17236C0", Offset = "0x17224C0", VA = "0x1817236C0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001778 RID: 6008
|
|
// (get) Token: 0x060093D9 RID: 37849 RVA: 0x001E5858 File Offset: 0x001E3A58
|
|
// (set) Token: 0x060093DA RID: 37850 RVA: 0x001E586C File Offset: 0x001E3A6C
|
|
[Token(Token = "0x17001778")]
|
|
public bool UseAlternateSSL
|
|
{
|
|
[Token(Token = "0x60093D9")]
|
|
[Address(RVA = "0x9F6FC0", Offset = "0x9F5DC0", VA = "0x1809F6FC0")]
|
|
get;
|
|
[Token(Token = "0x60093DA")]
|
|
[Address(RVA = "0xBA8090", Offset = "0xBA6E90", VA = "0x180BA8090")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001779 RID: 6009
|
|
// (get) Token: 0x060093DB RID: 37851 RVA: 0x001E5880 File Offset: 0x001E3A80
|
|
// (set) Token: 0x060093DC RID: 37852 RVA: 0x001E5894 File Offset: 0x001E3A94
|
|
[Token(Token = "0x17001779")]
|
|
public bool IsCookiesEnabled
|
|
{
|
|
[Token(Token = "0x60093DB")]
|
|
[Address(RVA = "0xA45A80", Offset = "0xA44880", VA = "0x180A45A80")]
|
|
get;
|
|
[Token(Token = "0x60093DC")]
|
|
[Address(RVA = "0x1723630", Offset = "0x1722430", VA = "0x181723630")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700177A RID: 6010
|
|
// (get) Token: 0x060093DD RID: 37853 RVA: 0x001E58A8 File Offset: 0x001E3AA8
|
|
// (set) Token: 0x060093DE RID: 37854 RVA: 0x001E58D0 File Offset: 0x001E3AD0
|
|
[Token(Token = "0x1700177A")]
|
|
public List<Cookie> Cookies
|
|
{
|
|
[Token(Token = "0x60093DD")]
|
|
[Address(RVA = "0x1723170", Offset = "0x1721F70", VA = "0x181723170")]
|
|
get
|
|
{
|
|
List<Cookie> list = this.customCookies;
|
|
if (list == 0)
|
|
{
|
|
List<Cookie> list2 = new List();
|
|
this.customCookies = list2;
|
|
}
|
|
return list;
|
|
}
|
|
[Token(Token = "0x60093DE")]
|
|
[Address(RVA = "0x536B60", Offset = "0x535960", VA = "0x180536B60")]
|
|
set
|
|
{
|
|
this.customCookies = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700177B RID: 6011
|
|
// (get) Token: 0x060093DF RID: 37855 RVA: 0x001E58E4 File Offset: 0x001E3AE4
|
|
// (set) Token: 0x060093E0 RID: 37856 RVA: 0x001E58F8 File Offset: 0x001E3AF8
|
|
[Token(Token = "0x1700177B")]
|
|
public HTTPFormUsage FormUsage
|
|
{
|
|
[Token(Token = "0x60093DF")]
|
|
[Address(RVA = "0x12683C0", Offset = "0x12671C0", VA = "0x1812683C0")]
|
|
get;
|
|
[Token(Token = "0x60093E0")]
|
|
[Address(RVA = "0x1267D80", Offset = "0x1266B80", VA = "0x181267D80")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700177C RID: 6012
|
|
// (get) Token: 0x060093E1 RID: 37857 RVA: 0x001E590C File Offset: 0x001E3B0C
|
|
// (set) Token: 0x060093E2 RID: 37858 RVA: 0x001E5920 File Offset: 0x001E3B20
|
|
[Token(Token = "0x1700177C")]
|
|
public HTTPRequestStates State
|
|
{
|
|
[Token(Token = "0x60093E1")]
|
|
[Address(RVA = "0x1723230", Offset = "0x1722030", VA = "0x181723230")]
|
|
get;
|
|
[Token(Token = "0x60093E2")]
|
|
[Address(RVA = "0x17236E0", Offset = "0x17224E0", VA = "0x1817236E0")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x1700177D RID: 6013
|
|
// (get) Token: 0x060093E3 RID: 37859 RVA: 0x001E5934 File Offset: 0x001E3B34
|
|
// (set) Token: 0x060093E4 RID: 37860 RVA: 0x001E5948 File Offset: 0x001E3B48
|
|
[Token(Token = "0x1700177D")]
|
|
public int RedirectCount
|
|
{
|
|
[Token(Token = "0x60093E3")]
|
|
[Address(RVA = "0xD510D0", Offset = "0xD4FED0", VA = "0x180D510D0")]
|
|
get;
|
|
[Token(Token = "0x60093E4")]
|
|
[Address(RVA = "0xD52980", Offset = "0xD51780", VA = "0x180D52980")]
|
|
internal set;
|
|
}
|
|
|
|
// Token: 0x140000BB RID: 187
|
|
// (add) Token: 0x060093E5 RID: 37861 RVA: 0x001E595C File Offset: 0x001E3B5C
|
|
// (remove) Token: 0x060093E6 RID: 37862 RVA: 0x001E5978 File Offset: 0x001E3B78
|
|
[Token(Token = "0x140000BB")]
|
|
public event Func<HTTPRequest, X509Certificate, X509Chain, bool> CustomCertificationValidator
|
|
{
|
|
[Token(Token = "0x60093E5")]
|
|
[Address(RVA = "0x1722F00", Offset = "0x1721D00", VA = "0x181722F00")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x60093E6")]
|
|
[Address(RVA = "0x17232C0", Offset = "0x17220C0", VA = "0x1817232C0")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700177E RID: 6014
|
|
// (get) Token: 0x060093E7 RID: 37863 RVA: 0x001E5994 File Offset: 0x001E3B94
|
|
// (set) Token: 0x060093E8 RID: 37864 RVA: 0x001E59A8 File Offset: 0x001E3BA8
|
|
[Token(Token = "0x1700177E")]
|
|
public TimeSpan ConnectTimeout
|
|
{
|
|
[Token(Token = "0x60093E7")]
|
|
[Address(RVA = "0x7A5E90", Offset = "0x7A4C90", VA = "0x1807A5E90")]
|
|
get;
|
|
[Token(Token = "0x60093E8")]
|
|
[Address(RVA = "0x8C1150", Offset = "0x8BFF50", VA = "0x1808C1150")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700177F RID: 6015
|
|
// (get) Token: 0x060093E9 RID: 37865 RVA: 0x001E59BC File Offset: 0x001E3BBC
|
|
// (set) Token: 0x060093EA RID: 37866 RVA: 0x001E59D0 File Offset: 0x001E3BD0
|
|
[Token(Token = "0x1700177F")]
|
|
public TimeSpan Timeout
|
|
{
|
|
[Token(Token = "0x60093E9")]
|
|
[Address(RVA = "0x8C1910", Offset = "0x8C0710", VA = "0x1808C1910")]
|
|
get;
|
|
[Token(Token = "0x60093EA")]
|
|
[Address(RVA = "0x8C0F40", Offset = "0x8BFD40", VA = "0x1808C0F40")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001780 RID: 6016
|
|
// (get) Token: 0x060093EB RID: 37867 RVA: 0x001E59E4 File Offset: 0x001E3BE4
|
|
// (set) Token: 0x060093EC RID: 37868 RVA: 0x001E59F8 File Offset: 0x001E3BF8
|
|
[Token(Token = "0x17001780")]
|
|
public bool EnableTimoutForStreaming
|
|
{
|
|
[Token(Token = "0x60093EB")]
|
|
[Address(RVA = "0xBA80C0", Offset = "0xBA6EC0", VA = "0x180BA80C0")]
|
|
get;
|
|
[Token(Token = "0x60093EC")]
|
|
[Address(RVA = "0xBA8110", Offset = "0xBA6F10", VA = "0x180BA8110")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001781 RID: 6017
|
|
// (get) Token: 0x060093ED RID: 37869 RVA: 0x001E5A0C File Offset: 0x001E3C0C
|
|
// (set) Token: 0x060093EE RID: 37870 RVA: 0x001E5A20 File Offset: 0x001E3C20
|
|
[Token(Token = "0x17001781")]
|
|
public bool EnableSafeReadOnUnknownContentLength
|
|
{
|
|
[Token(Token = "0x60093ED")]
|
|
[Address(RVA = "0x17231F0", Offset = "0x1721FF0", VA = "0x1817231F0")]
|
|
get;
|
|
[Token(Token = "0x60093EE")]
|
|
[Address(RVA = "0x1723620", Offset = "0x1722420", VA = "0x181723620")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001782 RID: 6018
|
|
// (get) Token: 0x060093EF RID: 37871 RVA: 0x001E5A34 File Offset: 0x001E3C34
|
|
// (set) Token: 0x060093F0 RID: 37872 RVA: 0x001E5A48 File Offset: 0x001E3C48
|
|
[Token(Token = "0x17001782")]
|
|
public int Priority
|
|
{
|
|
[Token(Token = "0x60093EF")]
|
|
[Address(RVA = "0x15B8260", Offset = "0x15B7060", VA = "0x1815B8260")]
|
|
get;
|
|
[Token(Token = "0x60093F0")]
|
|
[Address(RVA = "0x15B6F40", Offset = "0x15B5D40", VA = "0x1815B6F40")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001783 RID: 6019
|
|
// (get) Token: 0x060093F1 RID: 37873 RVA: 0x001E5A5C File Offset: 0x001E3C5C
|
|
// (set) Token: 0x060093F2 RID: 37874 RVA: 0x001E5A70 File Offset: 0x001E3C70
|
|
[Token(Token = "0x17001783")]
|
|
public ICertificateVerifyer CustomCertificateVerifyer
|
|
{
|
|
[Token(Token = "0x60093F1")]
|
|
[Address(RVA = "0x9CD8C0", Offset = "0x9CC6C0", VA = "0x1809CD8C0")]
|
|
get;
|
|
[Token(Token = "0x60093F2")]
|
|
[Address(RVA = "0xBA8070", Offset = "0xBA6E70", VA = "0x180BA8070")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001784 RID: 6020
|
|
// (get) Token: 0x060093F3 RID: 37875 RVA: 0x001E5A84 File Offset: 0x001E3C84
|
|
// (set) Token: 0x060093F4 RID: 37876 RVA: 0x001E5A98 File Offset: 0x001E3C98
|
|
[Token(Token = "0x17001784")]
|
|
public IClientCredentialsProvider CustomClientCredentialsProvider
|
|
{
|
|
[Token(Token = "0x60093F3")]
|
|
[Address(RVA = "0x4CB300", Offset = "0x4CA100", VA = "0x1804CB300")]
|
|
get;
|
|
[Token(Token = "0x60093F4")]
|
|
[Address(RVA = "0x533D70", Offset = "0x532B70", VA = "0x180533D70")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001785 RID: 6021
|
|
// (get) Token: 0x060093F5 RID: 37877 RVA: 0x001E5AAC File Offset: 0x001E3CAC
|
|
// (set) Token: 0x060093F6 RID: 37878 RVA: 0x001E5AC0 File Offset: 0x001E3CC0
|
|
[Token(Token = "0x17001785")]
|
|
public List<string> CustomTLSServerNameList
|
|
{
|
|
[Token(Token = "0x60093F5")]
|
|
[Address(RVA = "0x8379C0", Offset = "0x8367C0", VA = "0x1808379C0")]
|
|
get;
|
|
[Token(Token = "0x60093F6")]
|
|
[Address(RVA = "0xBA80D0", Offset = "0xBA6ED0", VA = "0x180BA80D0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001786 RID: 6022
|
|
// (get) Token: 0x060093F7 RID: 37879 RVA: 0x001E5AD4 File Offset: 0x001E3CD4
|
|
// (set) Token: 0x060093F8 RID: 37880 RVA: 0x001E5AE8 File Offset: 0x001E3CE8
|
|
[Token(Token = "0x17001786")]
|
|
public SupportedProtocols ProtocolHandler
|
|
{
|
|
[Token(Token = "0x60093F7")]
|
|
[Address(RVA = "0x1723220", Offset = "0x1722020", VA = "0x181723220")]
|
|
get;
|
|
[Token(Token = "0x60093F8")]
|
|
[Address(RVA = "0x17236D0", Offset = "0x17224D0", VA = "0x1817236D0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x140000BC RID: 188
|
|
// (add) Token: 0x060093F9 RID: 37881 RVA: 0x001E5AFC File Offset: 0x001E3CFC
|
|
// (remove) Token: 0x060093FA RID: 37882 RVA: 0x001E5B30 File Offset: 0x001E3D30
|
|
[Token(Token = "0x140000BC")]
|
|
public event OnBeforeRedirectionDelegate OnBeforeRedirection
|
|
{
|
|
[Token(Token = "0x60093F9")]
|
|
[Address(RVA = "0x1723030", Offset = "0x1721E30", VA = "0x181723030")]
|
|
add
|
|
{
|
|
Delegate @delegate;
|
|
for (;;)
|
|
{
|
|
@delegate = Delegate.Combine(this.onBeforeRedirection, value);
|
|
if (@delegate == 0)
|
|
{
|
|
break;
|
|
}
|
|
if (@delegate != 0)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
this.onBeforeRedirection = @delegate;
|
|
return;
|
|
Block_1:
|
|
this.onBeforeRedirection = @delegate;
|
|
}
|
|
[Token(Token = "0x60093FA")]
|
|
[Address(RVA = "0x17233F0", Offset = "0x17221F0", VA = "0x1817233F0")]
|
|
remove
|
|
{
|
|
Delegate @delegate;
|
|
for (;;)
|
|
{
|
|
@delegate = Delegate.Remove(this.onBeforeRedirection, value);
|
|
if (@delegate == 0)
|
|
{
|
|
break;
|
|
}
|
|
if (@delegate != 0)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
this.onBeforeRedirection = @delegate;
|
|
return;
|
|
Block_1:
|
|
this.onBeforeRedirection = @delegate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x140000BD RID: 189
|
|
// (add) Token: 0x060093FB RID: 37883 RVA: 0x001E5B64 File Offset: 0x001E3D64
|
|
// (remove) Token: 0x060093FC RID: 37884 RVA: 0x001E5B98 File Offset: 0x001E3D98
|
|
[Token(Token = "0x140000BD")]
|
|
public event OnBeforeHeaderSendDelegate OnBeforeHeaderSend
|
|
{
|
|
[Token(Token = "0x60093FB")]
|
|
[Address(RVA = "0x1722FA0", Offset = "0x1721DA0", VA = "0x181722FA0")]
|
|
add
|
|
{
|
|
Delegate @delegate;
|
|
for (;;)
|
|
{
|
|
@delegate = Delegate.Combine(this._onBeforeHeaderSend, value);
|
|
if (@delegate == 0)
|
|
{
|
|
break;
|
|
}
|
|
if (@delegate != 0)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
this._onBeforeHeaderSend = @delegate;
|
|
return;
|
|
Block_1:
|
|
this._onBeforeHeaderSend = @delegate;
|
|
}
|
|
[Token(Token = "0x60093FC")]
|
|
[Address(RVA = "0x1723360", Offset = "0x1722160", VA = "0x181723360")]
|
|
remove
|
|
{
|
|
Delegate @delegate;
|
|
for (;;)
|
|
{
|
|
@delegate = Delegate.Remove(this._onBeforeHeaderSend, value);
|
|
if (@delegate == 0)
|
|
{
|
|
break;
|
|
}
|
|
if (@delegate != 0)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
this._onBeforeHeaderSend = @delegate;
|
|
return;
|
|
Block_1:
|
|
this._onBeforeHeaderSend = @delegate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x140000BE RID: 190
|
|
// (add) Token: 0x060093FD RID: 37885 RVA: 0x001E5BCC File Offset: 0x001E3DCC
|
|
// (remove) Token: 0x060093FE RID: 37886 RVA: 0x001E5BE8 File Offset: 0x001E3DE8
|
|
[Token(Token = "0x140000BE")]
|
|
public event Action<HTTPRequest, Stream> OnSendingHeaders
|
|
{
|
|
[Token(Token = "0x60093FD")]
|
|
[Address(RVA = "0x17230C0", Offset = "0x1721EC0", VA = "0x1817230C0")]
|
|
[CompilerGenerated]
|
|
add
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
[Token(Token = "0x60093FE")]
|
|
[Address(RVA = "0x1723480", Offset = "0x1722280", VA = "0x181723480")]
|
|
[CompilerGenerated]
|
|
remove
|
|
{
|
|
Delegate @delegate;
|
|
while (@delegate != 0 && @delegate == 0)
|
|
{
|
|
}
|
|
while (@delegate != this)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001787 RID: 6023
|
|
// (get) Token: 0x060093FF RID: 37887 RVA: 0x001E5C04 File Offset: 0x001E3E04
|
|
// (set) Token: 0x06009400 RID: 37888 RVA: 0x001E5C18 File Offset: 0x001E3E18
|
|
[Token(Token = "0x17001787")]
|
|
public bool TryToMinimizeTCPLatency
|
|
{
|
|
[Token(Token = "0x60093FF")]
|
|
[Address(RVA = "0x75B800", Offset = "0x75A600", VA = "0x18075B800")]
|
|
get;
|
|
[Token(Token = "0x6009400")]
|
|
[Address(RVA = "0x9CDC70", Offset = "0x9CCA70", VA = "0x1809CDC70")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001788 RID: 6024
|
|
// (get) Token: 0x06009401 RID: 37889 RVA: 0x001E5C2C File Offset: 0x001E3E2C
|
|
// (set) Token: 0x06009402 RID: 37890 RVA: 0x001E5C40 File Offset: 0x001E3E40
|
|
[Token(Token = "0x17001788")]
|
|
internal long Downloaded
|
|
{
|
|
[Token(Token = "0x6009401")]
|
|
[Address(RVA = "0x469010", Offset = "0x467E10", VA = "0x180469010")]
|
|
get;
|
|
[Token(Token = "0x6009402")]
|
|
[Address(RVA = "0xBDFE50", Offset = "0xBDEC50", VA = "0x180BDFE50")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x17001789 RID: 6025
|
|
// (get) Token: 0x06009403 RID: 37891 RVA: 0x001E5C54 File Offset: 0x001E3E54
|
|
// (set) Token: 0x06009404 RID: 37892 RVA: 0x001E5C68 File Offset: 0x001E3E68
|
|
[Token(Token = "0x17001789")]
|
|
internal long DownloadLength
|
|
{
|
|
[Token(Token = "0x6009403")]
|
|
[Address(RVA = "0x836950", Offset = "0x835750", VA = "0x180836950")]
|
|
get;
|
|
[Token(Token = "0x6009404")]
|
|
[Address(RVA = "0xBDFD70", Offset = "0xBDEB70", VA = "0x180BDFD70")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700178A RID: 6026
|
|
// (get) Token: 0x06009405 RID: 37893 RVA: 0x001E5C7C File Offset: 0x001E3E7C
|
|
// (set) Token: 0x06009406 RID: 37894 RVA: 0x001E5C90 File Offset: 0x001E3E90
|
|
[Token(Token = "0x1700178A")]
|
|
internal bool DownloadProgressChanged
|
|
{
|
|
[Token(Token = "0x6009405")]
|
|
[Address(RVA = "0xE96510", Offset = "0xE95310", VA = "0x180E96510")]
|
|
get;
|
|
[Token(Token = "0x6009406")]
|
|
[Address(RVA = "0x16ACF30", Offset = "0x16ABD30", VA = "0x1816ACF30")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700178B RID: 6027
|
|
// (get) Token: 0x06009407 RID: 37895 RVA: 0x001E5CA4 File Offset: 0x001E3EA4
|
|
[Token(Token = "0x1700178B")]
|
|
internal long UploadStreamLength
|
|
{
|
|
[Token(Token = "0x6009407")]
|
|
[Address(RVA = "0x1723240", Offset = "0x1722040", VA = "0x181723240")]
|
|
get
|
|
{
|
|
if (this.<UploadStream>k__BackingField != (ulong)0L && this.<UseUploadStreamLength>k__BackingField)
|
|
{
|
|
bool canWrite = this.<UploadStream>k__BackingField.CanWrite;
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700178C RID: 6028
|
|
// (get) Token: 0x06009408 RID: 37896 RVA: 0x001E5CD8 File Offset: 0x001E3ED8
|
|
// (set) Token: 0x06009409 RID: 37897 RVA: 0x001E5CEC File Offset: 0x001E3EEC
|
|
[Token(Token = "0x1700178C")]
|
|
internal long Uploaded
|
|
{
|
|
[Token(Token = "0x6009408")]
|
|
[Address(RVA = "0x837B00", Offset = "0x836900", VA = "0x180837B00")]
|
|
get;
|
|
[Token(Token = "0x6009409")]
|
|
[Address(RVA = "0xBDCC20", Offset = "0xBDBA20", VA = "0x180BDCC20")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700178D RID: 6029
|
|
// (get) Token: 0x0600940A RID: 37898 RVA: 0x001E5D00 File Offset: 0x001E3F00
|
|
// (set) Token: 0x0600940B RID: 37899 RVA: 0x001E5D14 File Offset: 0x001E3F14
|
|
[Token(Token = "0x1700178D")]
|
|
internal long UploadLength
|
|
{
|
|
[Token(Token = "0x600940A")]
|
|
[Address(RVA = "0x837AF0", Offset = "0x8368F0", VA = "0x180837AF0")]
|
|
get;
|
|
[Token(Token = "0x600940B")]
|
|
[Address(RVA = "0xAF1020", Offset = "0xAEFE20", VA = "0x180AF1020")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700178E RID: 6030
|
|
// (get) Token: 0x0600940C RID: 37900 RVA: 0x001E5D28 File Offset: 0x001E3F28
|
|
// (set) Token: 0x0600940D RID: 37901 RVA: 0x001E5D3C File Offset: 0x001E3F3C
|
|
[Token(Token = "0x1700178E")]
|
|
internal bool UploadProgressChanged
|
|
{
|
|
[Token(Token = "0x600940C")]
|
|
[Address(RVA = "0x60CD90", Offset = "0x60BB90", VA = "0x18060CD90")]
|
|
get;
|
|
[Token(Token = "0x600940D")]
|
|
[Address(RVA = "0x104DBC0", Offset = "0x104C9C0", VA = "0x18104DBC0")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x1700178F RID: 6031
|
|
// (get) Token: 0x0600940E RID: 37902 RVA: 0x001E5D50 File Offset: 0x001E3F50
|
|
// (set) Token: 0x0600940F RID: 37903 RVA: 0x001E5D64 File Offset: 0x001E3F64
|
|
[Token(Token = "0x1700178F")]
|
|
private Dictionary<string, List<string>> Headers
|
|
{
|
|
[Token(Token = "0x600940E")]
|
|
[Address(RVA = "0x5F4D40", Offset = "0x5F3B40", VA = "0x1805F4D40")]
|
|
get;
|
|
[Token(Token = "0x600940F")]
|
|
[Address(RVA = "0xBDB940", Offset = "0xBDA740", VA = "0x180BDB940")]
|
|
set;
|
|
}
|
|
|
|
// Token: 0x06009410 RID: 37904 RVA: 0x001E5D78 File Offset: 0x001E3F78
|
|
[Token(Token = "0x6009410")]
|
|
[Address(RVA = "0x1722840", Offset = "0x1721640", VA = "0x181722840")]
|
|
public HTTPRequest(Uri uri)
|
|
{
|
|
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
|
|
bool <IsCachingDisabled>k__BackingField = HTTPManager.<IsCachingDisabled>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06009411 RID: 37905 RVA: 0x001E5D98 File Offset: 0x001E3F98
|
|
[Token(Token = "0x6009411")]
|
|
[Address(RVA = "0x1722370", Offset = "0x1721170", VA = "0x181722370")]
|
|
public HTTPRequest(Uri uri, OnRequestFinishedDelegate callback)
|
|
{
|
|
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
|
|
bool <IsCachingDisabled>k__BackingField = HTTPManager.<IsCachingDisabled>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06009412 RID: 37906 RVA: 0x001E5DB4 File Offset: 0x001E3FB4
|
|
[Token(Token = "0x6009412")]
|
|
[Address(RVA = "0x1722750", Offset = "0x1721550", VA = "0x181722750")]
|
|
public HTTPRequest(Uri uri, bool isKeepAlive, OnRequestFinishedDelegate callback)
|
|
{
|
|
bool <IsCachingDisabled>k__BackingField = HTTPManager.<IsCachingDisabled>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06009413 RID: 37907 RVA: 0x001E5DCC File Offset: 0x001E3FCC
|
|
[Token(Token = "0x6009413")]
|
|
[Address(RVA = "0x1722340", Offset = "0x1721140", VA = "0x181722340")]
|
|
public HTTPRequest(Uri uri, bool isKeepAlive, bool disableCache, OnRequestFinishedDelegate callback)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009414 RID: 37908 RVA: 0x001E5DDC File Offset: 0x001E3FDC
|
|
[Token(Token = "0x6009414")]
|
|
[Address(RVA = "0x17224A0", Offset = "0x17212A0", VA = "0x1817224A0")]
|
|
public HTTPRequest(Uri uri, HTTPMethods methodType)
|
|
{
|
|
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06009415 RID: 37909 RVA: 0x001E5DF8 File Offset: 0x001E3FF8
|
|
[Token(Token = "0x6009415")]
|
|
[Address(RVA = "0x17225F0", Offset = "0x17213F0", VA = "0x1817225F0")]
|
|
public HTTPRequest(Uri uri, HTTPMethods methodType, OnRequestFinishedDelegate callback)
|
|
{
|
|
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06009416 RID: 37910 RVA: 0x001E5E14 File Offset: 0x001E4014
|
|
[Token(Token = "0x6009416")]
|
|
[Address(RVA = "0x1722230", Offset = "0x1721030", VA = "0x181722230")]
|
|
public HTTPRequest(Uri uri, HTTPMethods methodType, bool isKeepAlive, OnRequestFinishedDelegate callback)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06009417 RID: 37911 RVA: 0x001E5E28 File Offset: 0x001E4028
|
|
[Token(Token = "0x6009417")]
|
|
[Address(RVA = "0x1722960", Offset = "0x1721760", VA = "0x181722960")]
|
|
public HTTPRequest(Uri uri, HTTPMethods methodType, bool isKeepAlive, bool disableCache, OnRequestFinishedDelegate callback)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009417)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::.ctor(System.Uri,BestHTTP.HTTPMethods,System.Boolean,System.Boolean,BestHTTP.OnRequestFinishedDelegate)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_165:
|
|
stloc:NotSupportedException(var_15_16F, newobj:NotSupportedException(NotSupportedException::.ctor, ldstr:string("Changing the StreamFragmentSize property while processing the request is not supported.")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009418 RID: 37912 RVA: 0x001E5FA8 File Offset: 0x001E41A8
|
|
[Token(Token = "0x6009418")]
|
|
[Address(RVA = "0x171F200", Offset = "0x171E000", VA = "0x18171F200")]
|
|
public void AddField(string fieldName, string value)
|
|
{
|
|
Encoding utf = Encoding.UTF8;
|
|
HTTPFormBase fieldCollector = this.FieldCollector;
|
|
if (fieldCollector == 0)
|
|
{
|
|
HTTPFormBase httpformBase = new HTTPFormBase();
|
|
this.FieldCollector = httpformBase;
|
|
}
|
|
fieldCollector.AddField(fieldName, value, utf);
|
|
}
|
|
|
|
// Token: 0x06009419 RID: 37913 RVA: 0x001E5FE4 File Offset: 0x001E41E4
|
|
[Token(Token = "0x6009419")]
|
|
[Address(RVA = "0x171F2C0", Offset = "0x171E0C0", VA = "0x18171F2C0")]
|
|
public void AddField(string fieldName, string value, Encoding e)
|
|
{
|
|
HTTPFormBase fieldCollector = this.FieldCollector;
|
|
if (fieldCollector == 0)
|
|
{
|
|
int num = 0;
|
|
HTTPFormBase httpformBase;
|
|
httpformBase.FieldGetter(num, value, e);
|
|
this.FieldCollector = httpformBase;
|
|
}
|
|
fieldCollector.AddField(fieldName, value, e);
|
|
}
|
|
|
|
// Token: 0x0600941A RID: 37914 RVA: 0x001E6020 File Offset: 0x001E4220
|
|
[Token(Token = "0x600941A")]
|
|
[Address(RVA = "0x171F110", Offset = "0x171DF10", VA = "0x18171F110")]
|
|
public void AddBinaryData(string fieldName, byte[] content)
|
|
{
|
|
int num = 0;
|
|
int num2 = 0;
|
|
this.AddBinaryData(fieldName, content, num2, num);
|
|
}
|
|
|
|
// Token: 0x0600941B RID: 37915 RVA: 0x001E603C File Offset: 0x001E423C
|
|
[Token(Token = "0x600941B")]
|
|
[Address(RVA = "0x171F130", Offset = "0x171DF30", VA = "0x18171F130")]
|
|
public void AddBinaryData(string fieldName, byte[] content, string fileName)
|
|
{
|
|
int num = 0;
|
|
this.AddBinaryData(fieldName, content, fileName, num);
|
|
}
|
|
|
|
// Token: 0x0600941C RID: 37916 RVA: 0x001E6058 File Offset: 0x001E4258
|
|
[Token(Token = "0x600941C")]
|
|
[Address(RVA = "0x171F150", Offset = "0x171DF50", VA = "0x18171F150")]
|
|
public void AddBinaryData(string fieldName, byte[] content, string fileName, string mimeType)
|
|
{
|
|
if (this.FieldCollector == 0)
|
|
{
|
|
HTTPFormBase httpformBase = new HTTPFormBase();
|
|
this.FieldCollector = httpformBase;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600941D RID: 37917 RVA: 0x001E6084 File Offset: 0x001E4284
|
|
[Token(Token = "0x600941D")]
|
|
[Address(RVA = "0xBDFD30", Offset = "0xBDEB30", VA = "0x180BDFD30")]
|
|
public void SetForm(HTTPFormBase form)
|
|
{
|
|
this.FormImpl = form;
|
|
}
|
|
|
|
// Token: 0x0600941E RID: 37918 RVA: 0x001E6098 File Offset: 0x001E4298
|
|
[Token(Token = "0x600941E")]
|
|
[Address(RVA = "0x1720850", Offset = "0x171F650", VA = "0x181720850")]
|
|
public List<HTTPFieldData> GetFormFields()
|
|
{
|
|
HTTPFormBase fieldCollector = this.FieldCollector;
|
|
if (fieldCollector != 0 && fieldCollector.<Fields>k__BackingField != 0)
|
|
{
|
|
return new List(this.FieldCollector.<Fields>k__BackingField);
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600941F RID: 37919 RVA: 0x001E60D4 File Offset: 0x001E42D4
|
|
[Token(Token = "0x600941F")]
|
|
[Address(RVA = "0x171F620", Offset = "0x171E420", VA = "0x18171F620")]
|
|
public void ClearForm()
|
|
{
|
|
int num = 0;
|
|
this.FormImpl = num;
|
|
this.FieldCollector = num;
|
|
}
|
|
|
|
// Token: 0x06009420 RID: 37920 RVA: 0x001E60F4 File Offset: 0x001E42F4
|
|
[Token(Token = "0x6009420")]
|
|
[Address(RVA = "0x1720AF0", Offset = "0x171F8F0", VA = "0x181720AF0")]
|
|
private HTTPFormBase SelectFormImplementation()
|
|
{
|
|
HTTPFormBase formImpl = this.FormImpl;
|
|
if (formImpl == 0)
|
|
{
|
|
HTTPFormBase fieldCollector = this.FieldCollector;
|
|
if (fieldCollector == 0)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
HTTPFormUsage httpformUsage = this.<FormUsage>k__BackingField;
|
|
if (httpformUsage != HTTPFormUsage.Automatic)
|
|
{
|
|
if (httpformUsage == HTTPFormUsage.Automatic || httpformUsage == HTTPFormUsage.Automatic)
|
|
{
|
|
goto IL_41;
|
|
}
|
|
RawJsonForm rawJsonForm = new RawJsonForm();
|
|
}
|
|
if (fieldCollector.<HasBinary>k__BackingField || !fieldCollector.<HasLongValue>k__BackingField)
|
|
{
|
|
}
|
|
IL_41:
|
|
HTTPMultiPartForm httpmultiPartForm = new HTTPMultiPartForm();
|
|
httpmultiPartForm.Finalize();
|
|
string text2;
|
|
string text = "BestHTTP_HTTPMultiPartForm_" + text2;
|
|
httpmultiPartForm.Boundary = text;
|
|
this.FormImpl = httpmultiPartForm;
|
|
string text3 = httpmultiPartForm.ToString();
|
|
}
|
|
return formImpl;
|
|
}
|
|
|
|
// Token: 0x06009421 RID: 37921 RVA: 0x001E6184 File Offset: 0x001E4384
|
|
[Token(Token = "0x6009421")]
|
|
[Address(RVA = "0x171F370", Offset = "0x171E170", VA = "0x18171F370")]
|
|
public void AddHeader(string name, string value)
|
|
{
|
|
if (this.<Headers>k__BackingField == 0)
|
|
{
|
|
Dictionary<string, List<string>> dictionary = new Dictionary();
|
|
this.<Headers>k__BackingField = dictionary;
|
|
}
|
|
bool flag;
|
|
List<string> list;
|
|
if (!flag)
|
|
{
|
|
Dictionary<string, List<string>> dictionary2 = this.<Headers>k__BackingField;
|
|
list = new List(1);
|
|
dictionary2.Add(name, list);
|
|
}
|
|
list.Add(value);
|
|
}
|
|
|
|
// Token: 0x06009422 RID: 37922 RVA: 0x001E61D4 File Offset: 0x001E43D4
|
|
[Token(Token = "0x6009422")]
|
|
[Address(RVA = "0x17217F0", Offset = "0x17205F0", VA = "0x1817217F0")]
|
|
public void SetHeader(string name, string value)
|
|
{
|
|
if (this.<Headers>k__BackingField == 0)
|
|
{
|
|
Dictionary<string, List<string>> dictionary = new Dictionary();
|
|
this.<Headers>k__BackingField = dictionary;
|
|
}
|
|
bool flag;
|
|
List<string> list;
|
|
if (!flag)
|
|
{
|
|
Dictionary<string, List<string>> dictionary2 = this.<Headers>k__BackingField;
|
|
list = new List(1);
|
|
dictionary2.Add(name, list);
|
|
}
|
|
list.Clear();
|
|
list.Add(value);
|
|
}
|
|
|
|
// Token: 0x06009423 RID: 37923 RVA: 0x001E6228 File Offset: 0x001E4428
|
|
[Token(Token = "0x6009423")]
|
|
[Address(RVA = "0x17209F0", Offset = "0x171F7F0", VA = "0x1817209F0")]
|
|
public bool RemoveHeader(string name)
|
|
{
|
|
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
|
|
if (dictionary != 0)
|
|
{
|
|
return dictionary.Remove(name);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009424 RID: 37924 RVA: 0x001E624C File Offset: 0x001E444C
|
|
[Token(Token = "0x6009424")]
|
|
[Address(RVA = "0x1720980", Offset = "0x171F780", VA = "0x181720980")]
|
|
public bool HasHeader(string name)
|
|
{
|
|
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
|
|
if (dictionary == 0)
|
|
{
|
|
}
|
|
return dictionary.ContainsKey(name);
|
|
}
|
|
|
|
// Token: 0x06009425 RID: 37925 RVA: 0x001E6270 File Offset: 0x001E4470
|
|
[Token(Token = "0x6009425")]
|
|
[Address(RVA = "0x17207B0", Offset = "0x171F5B0", VA = "0x1817207B0")]
|
|
public string GetFirstHeaderValue(string name)
|
|
{
|
|
bool flag;
|
|
if (this.<Headers>k__BackingField != 0 && flag && flag > false && !flag)
|
|
{
|
|
ThrowHelper.ThrowArgumentOutOfRangeException();
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009426 RID: 37926 RVA: 0x001E62A0 File Offset: 0x001E44A0
|
|
[Token(Token = "0x6009426")]
|
|
[Address(RVA = "0x1720900", Offset = "0x171F700", VA = "0x181720900")]
|
|
public List<string> GetHeaderValues(string name)
|
|
{
|
|
bool flag;
|
|
if (this.<Headers>k__BackingField == 0 || flag)
|
|
{
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009427 RID: 37927 RVA: 0x001E62C4 File Offset: 0x001E44C4
|
|
[Token(Token = "0x6009427")]
|
|
[Address(RVA = "0x1720A50", Offset = "0x171F850", VA = "0x181720A50")]
|
|
public void RemoveHeaders()
|
|
{
|
|
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
|
|
if (dictionary != 0)
|
|
{
|
|
dictionary.Clear();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009428 RID: 37928 RVA: 0x001E62E4 File Offset: 0x001E44E4
|
|
[Token(Token = "0x6009428")]
|
|
[Address(RVA = "0x17219C0", Offset = "0x17207C0", VA = "0x1817219C0")]
|
|
public void SetRangeHeader(int firstBytePos)
|
|
{
|
|
string text = string.Format("bytes={0}-", firstBytePos);
|
|
this.SetHeader("Range", text);
|
|
}
|
|
|
|
// Token: 0x06009429 RID: 37929 RVA: 0x001E630C File Offset: 0x001E450C
|
|
[Token(Token = "0x6009429")]
|
|
[Address(RVA = "0x1721920", Offset = "0x1720720", VA = "0x181721920")]
|
|
public void SetRangeHeader(int firstBytePos, int lastBytePos)
|
|
{
|
|
string text = string.Format("bytes={0}-{1}", firstBytePos, lastBytePos);
|
|
this.SetHeader("Range", text);
|
|
}
|
|
|
|
// Token: 0x0600942A RID: 37930 RVA: 0x001E6334 File Offset: 0x001E4534
|
|
[Token(Token = "0x600942A")]
|
|
[Address(RVA = "0x1720650", Offset = "0x171F450", VA = "0x181720650")]
|
|
public void EnumerateHeaders(OnHeaderEnumerationDelegate callback)
|
|
{
|
|
int num = 0;
|
|
this.EnumerateHeaders(callback, num != 0);
|
|
}
|
|
|
|
// Token: 0x0600942B RID: 37931 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600942B")]
|
|
[Address(RVA = "0x171F8D0", Offset = "0x171E6D0", VA = "0x18171F8D0")]
|
|
public void EnumerateHeaders(OnHeaderEnumerationDelegate callback, bool callBeforeSendCallback)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600942C RID: 37932 RVA: 0x001E634C File Offset: 0x001E454C
|
|
[Token(Token = "0x600942C")]
|
|
[Address(RVA = "0x1720C50", Offset = "0x171FA50", VA = "0x181720C50")]
|
|
private void SendHeaders(Stream stream)
|
|
{
|
|
OnHeaderEnumerationDelegate onHeaderEnumerationDelegate = delegate(string header, List<string> values)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
};
|
|
this.EnumerateHeaders(onHeaderEnumerationDelegate, true);
|
|
Action<HTTPRequest, Stream> onSendingHeaders = this.OnSendingHeaders;
|
|
if (onSendingHeaders != 0)
|
|
{
|
|
Stream stream2 = stream;
|
|
onSendingHeaders(this, stream2);
|
|
}
|
|
ILogger logger = HTTPManager.Logger;
|
|
}
|
|
|
|
// Token: 0x0600942D RID: 37933 RVA: 0x001E63AC File Offset: 0x001E45AC
|
|
[Token(Token = "0x600942D")]
|
|
[Address(RVA = "0x171F6E0", Offset = "0x171E4E0", VA = "0x18171F6E0")]
|
|
public string DumpHeaders()
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
BufferPoolMemoryStream bufferPoolMemoryStream = new BufferPoolMemoryStream(5120);
|
|
this.SendHeaders(bufferPoolMemoryStream);
|
|
byte[] array = bufferPoolMemoryStream.ToArray();
|
|
int length;
|
|
StringBuilder stringBuilder = new StringBuilder(length);
|
|
length = array.Length;
|
|
int length2 = array.Length;
|
|
if (num < length2)
|
|
{
|
|
byte b;
|
|
StringBuilder stringBuilder2 = stringBuilder.Append((char)b);
|
|
num++;
|
|
}
|
|
int hashCode = stringBuilder.GetHashCode();
|
|
if (bufferPoolMemoryStream != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
throw new IndexOutOfRangeException();
|
|
}
|
|
|
|
// Token: 0x0600942E RID: 37934 RVA: 0x001E6434 File Offset: 0x001E4634
|
|
[Token(Token = "0x600942E")]
|
|
[Address(RVA = "0x1720710", Offset = "0x171F510", VA = "0x181720710")]
|
|
public byte[] GetEntityBody()
|
|
{
|
|
byte[] array = this.<RawData>k__BackingField;
|
|
if (array == 0)
|
|
{
|
|
if (this.FormImpl == array)
|
|
{
|
|
HTTPFormBase fieldCollector = this.FieldCollector;
|
|
if (fieldCollector == 0 || fieldCollector.<Fields>k__BackingField == 0)
|
|
{
|
|
goto IL_38;
|
|
}
|
|
}
|
|
HTTPFormBase httpformBase = this.SelectFormImplementation();
|
|
if (this.FormImpl == 0)
|
|
{
|
|
}
|
|
IL_38:;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600942F RID: 37935 RVA: 0x001E647C File Offset: 0x001E467C
|
|
[Token(Token = "0x600942F")]
|
|
[Address(RVA = "0x1720DA0", Offset = "0x171FBA0", VA = "0x181720DA0")]
|
|
internal void SendOutTo(Stream stream)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
if (this.<Proxy>k__BackingField == 0 || (this.<IsRedirected>k__BackingField ? 1 : 0) != num)
|
|
{
|
|
}
|
|
if (this.<IsRedirected>k__BackingField)
|
|
{
|
|
}
|
|
string parts = this.<Uri>k__BackingField.GetParts(UriComponents.PathAndQuery, UriFormat.UriEscaped);
|
|
string[] methodNames = HTTPRequest.MethodNames;
|
|
HTTPMethods httpmethods = this.<MethodType>k__BackingField;
|
|
string text = methodNames[(int)httpmethods];
|
|
string text2 = string.Format("{0} {1} HTTP/1.1", text, "/");
|
|
if (HTTPManager.Logger <= (ulong)1L)
|
|
{
|
|
ILogger logger = HTTPManager.Logger;
|
|
string text3 = string.Format("Sending request: '{0}'", text2);
|
|
}
|
|
WriteOnlyBufferedStream writeOnlyBufferedStream;
|
|
int num2 = writeOnlyBufferedStream.ReadByte();
|
|
byte[] eol = HTTPRequest.EOL;
|
|
int num3 = writeOnlyBufferedStream.ReadByte();
|
|
byte[] array;
|
|
VariableSizedBufferPool.Release(array);
|
|
this.SendHeaders(writeOnlyBufferedStream);
|
|
byte[] eol2 = HTTPRequest.EOL;
|
|
int num4 = writeOnlyBufferedStream.ReadByte();
|
|
if (this.<RawData>k__BackingField == 0)
|
|
{
|
|
if (this.FormImpl != 0)
|
|
{
|
|
}
|
|
if (this.<UploadStream>k__BackingField == (ulong)0L)
|
|
{
|
|
}
|
|
}
|
|
if (this.<UploadStream>k__BackingField != 0)
|
|
{
|
|
long uploadStreamLength;
|
|
if (this.<UseUploadStreamLength>k__BackingField)
|
|
{
|
|
uploadStreamLength = this.UploadStreamLength;
|
|
}
|
|
this.<UploadLength>k__BackingField = uploadStreamLength;
|
|
}
|
|
MemoryStream memoryStream;
|
|
this.<UploadLength>k__BackingField = memoryStream;
|
|
this.<Uploaded>k__BackingField = (long)num;
|
|
ulong num5;
|
|
byte[] array2 = VariableSizedBufferPool.Get((long)HTTPRequest.UploadChunkSize, num5 != 0UL);
|
|
if (!this.<UseUploadStreamLength>k__BackingField)
|
|
{
|
|
string text4;
|
|
byte[] asciibytes = text4.GetASCIIBytes();
|
|
ChunkHelper.WriteBytesToStream(writeOnlyBufferedStream, asciibytes);
|
|
byte[] eol3 = HTTPRequest.EOL;
|
|
ChunkHelper.WriteBytesToStream(writeOnlyBufferedStream, eol3);
|
|
VariableSizedBufferPool.Release(asciibytes);
|
|
}
|
|
int num6 = writeOnlyBufferedStream.ReadByte();
|
|
if (!this.<UseUploadStreamLength>k__BackingField)
|
|
{
|
|
}
|
|
this.<UploadProgressChanged>k__BackingField = true;
|
|
VariableSizedBufferPool.Release(array2);
|
|
if (!this.<UseUploadStreamLength>k__BackingField)
|
|
{
|
|
int num7 = writeOnlyBufferedStream.ReadByte();
|
|
byte[] eol4 = HTTPRequest.EOL;
|
|
int num8 = writeOnlyBufferedStream.ReadByte();
|
|
byte[] eol5 = HTTPRequest.EOL;
|
|
int num9 = writeOnlyBufferedStream.ReadByte();
|
|
byte[] array3;
|
|
VariableSizedBufferPool.Release(array3);
|
|
}
|
|
if (this.<UploadStream>k__BackingField != (ulong)0L)
|
|
{
|
|
}
|
|
memoryStream.Dispose();
|
|
if (writeOnlyBufferedStream != 0)
|
|
{
|
|
}
|
|
if (num != 0)
|
|
{
|
|
goto IL_238;
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
ILogger logger2 = HTTPManager.Logger;
|
|
Stream stream2 = this.<UploadStream>k__BackingField;
|
|
if (stream2 != 0 && this.<DisposeUploadStream>k__BackingField)
|
|
{
|
|
stream2.Dispose();
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_238:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06009430 RID: 37936 RVA: 0x001E66D8 File Offset: 0x001E48D8
|
|
[Token(Token = "0x6009430")]
|
|
[Address(RVA = "0x1721A40", Offset = "0x1720840", VA = "0x181721A40")]
|
|
internal void UpgradeCallback()
|
|
{
|
|
HTTPResponse httpresponse = this.<Response>k__BackingField;
|
|
if (httpresponse != 0 && httpresponse.<IsUpgraded>k__BackingField)
|
|
{
|
|
OnRequestFinishedDelegate onUpgraded = this.OnUpgraded;
|
|
if (onUpgraded != 0)
|
|
{
|
|
HTTPResponse httpresponse2 = this.<Response>k__BackingField;
|
|
onUpgraded(this, httpresponse2);
|
|
}
|
|
ILogger logger = HTTPManager.Logger;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009431 RID: 37937 RVA: 0x001E6724 File Offset: 0x001E4924
|
|
[Token(Token = "0x6009431")]
|
|
[Address(RVA = "0x171F490", Offset = "0x171E290", VA = "0x18171F490")]
|
|
internal void CallCallback()
|
|
{
|
|
OnRequestFinishedDelegate onRequestFinishedDelegate = this.<Callback>k__BackingField;
|
|
if (onRequestFinishedDelegate != 0)
|
|
{
|
|
HTTPResponse httpresponse = this.<Response>k__BackingField;
|
|
onRequestFinishedDelegate(this, httpresponse);
|
|
}
|
|
ILogger logger = HTTPManager.Logger;
|
|
}
|
|
|
|
// Token: 0x06009432 RID: 37938 RVA: 0x001E675C File Offset: 0x001E495C
|
|
[Token(Token = "0x6009432")]
|
|
[Address(RVA = "0x171F5E0", Offset = "0x171E3E0", VA = "0x18171F5E0")]
|
|
internal bool CallOnBeforeRedirection(Uri redirectUri)
|
|
{
|
|
OnBeforeRedirectionDelegate onBeforeRedirectionDelegate = this.onBeforeRedirection;
|
|
if (onBeforeRedirectionDelegate == 0)
|
|
{
|
|
return true;
|
|
}
|
|
HTTPResponse httpresponse = this.<Response>k__BackingField;
|
|
return onBeforeRedirectionDelegate(this, httpresponse, redirectUri);
|
|
}
|
|
|
|
// Token: 0x06009433 RID: 37939 RVA: 0x001E6788 File Offset: 0x001E4988
|
|
[Token(Token = "0x6009433")]
|
|
[Address(RVA = "0x1720660", Offset = "0x171F460", VA = "0x181720660")]
|
|
internal void FinishStreaming()
|
|
{
|
|
HTTPResponse httpresponse = this.<Response>k__BackingField;
|
|
if (httpresponse != 0 && this.useStreaming)
|
|
{
|
|
if (HTTPManager.Logger == 0)
|
|
{
|
|
httpresponse.VerboseLogging("FinishStreaming");
|
|
}
|
|
httpresponse.<IsStreamingFinished>k__BackingField = true;
|
|
httpresponse.Dispose();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009434 RID: 37940 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6009434")]
|
|
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
|
|
internal void Prepare()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06009435 RID: 37941 RVA: 0x001E67D4 File Offset: 0x001E49D4
|
|
[Token(Token = "0x6009435")]
|
|
[Address(RVA = "0x171F560", Offset = "0x171E360", VA = "0x18171F560")]
|
|
internal bool CallCustomCertificationValidator(X509Certificate cert, X509Chain chain)
|
|
{
|
|
Func<HTTPRequest, X509Certificate, X509Chain, bool> customCertificationValidator = this.CustomCertificationValidator;
|
|
return customCertificationValidator == 0 || customCertificationValidator(this, cert, chain) != null;
|
|
}
|
|
|
|
// Token: 0x06009436 RID: 37942 RVA: 0x001E67F8 File Offset: 0x001E49F8
|
|
[Token(Token = "0x6009436")]
|
|
[Address(RVA = "0x1721790", Offset = "0x1720590", VA = "0x181721790")]
|
|
public HTTPRequest Send()
|
|
{
|
|
return HTTPManager.SendRequest(this);
|
|
}
|
|
|
|
// Token: 0x06009437 RID: 37943 RVA: 0x001E680C File Offset: 0x001E4A0C
|
|
[Token(Token = "0x6009437")]
|
|
[Address(RVA = "0x171ED40", Offset = "0x171DB40", VA = "0x18171ED40")]
|
|
public void Abort()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009437)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::Abort()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_C0:
|
|
stloc:Exception(var_12_CA, newobj:Exception(Exception::.ctor, ldstr:string("Wasn't able to acquire a thread lock. Abort failed!")))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06009438 RID: 37944 RVA: 0x001E68E4 File Offset: 0x001E4AE4
|
|
[Token(Token = "0x6009438")]
|
|
[Address(RVA = "0x171F640", Offset = "0x171E440", VA = "0x18171F640")]
|
|
public void Clear()
|
|
{
|
|
int num = 0;
|
|
this.FormImpl = num;
|
|
this.FieldCollector = num;
|
|
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
|
|
if (dictionary != 0)
|
|
{
|
|
dictionary.Clear();
|
|
}
|
|
this.<IsRedirected>k__BackingField = num != 0;
|
|
this.<RedirectCount>k__BackingField = num;
|
|
this.<DownloadLength>k__BackingField = (long)num;
|
|
this.<Downloaded>k__BackingField = (long)num;
|
|
}
|
|
|
|
// Token: 0x06009439 RID: 37945 RVA: 0x001E6930 File Offset: 0x001E4B30
|
|
[Token(Token = "0x6009439")]
|
|
[Address(RVA = "0x1721B20", Offset = "0x1720920", VA = "0x181721B20")]
|
|
private void VerboseLogging(string str)
|
|
{
|
|
ILogger logger = HTTPManager.Logger;
|
|
if (this.<IsRedirected>k__BackingField)
|
|
{
|
|
}
|
|
int hashCode = this.<Uri>k__BackingField.GetHashCode();
|
|
}
|
|
|
|
// Token: 0x17001790 RID: 6032
|
|
// (get) Token: 0x0600943A RID: 37946 RVA: 0x001E6960 File Offset: 0x001E4B60
|
|
[Token(Token = "0x17001790")]
|
|
public object Current
|
|
{
|
|
[Token(Token = "0x600943A")]
|
|
[Address(RVA = "0x43E630", Offset = "0x43D430", VA = "0x18043E630", Slot = "5")]
|
|
get
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600943B RID: 37947 RVA: 0x001E6970 File Offset: 0x001E4B70
|
|
[Token(Token = "0x600943B")]
|
|
[Address(RVA = "0x17209E0", Offset = "0x171F7E0", VA = "0x1817209E0", Slot = "4")]
|
|
public bool MoveNext()
|
|
{
|
|
return this.<State>k__BackingField < HTTPRequestStates.Finished;
|
|
}
|
|
|
|
// Token: 0x0600943C RID: 37948 RVA: 0x001E6988 File Offset: 0x001E4B88
|
|
[Token(Token = "0x600943C")]
|
|
[Address(RVA = "0x1720AA0", Offset = "0x171F8A0", VA = "0x181720AA0", Slot = "6")]
|
|
public void Reset()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600943C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.HTTPRequest::Reset()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:NotImplementedException(var_0_05, newobj:NotImplementedException(NotImplementedException::.ctor))
|
|
}
|
|
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17001791 RID: 6033
|
|
// (get) Token: 0x0600943D RID: 37949 RVA: 0x001E699C File Offset: 0x001E4B9C
|
|
[Token(Token = "0x17001791")]
|
|
HTTPRequest IEnumerator<HTTPRequest>.Current
|
|
{
|
|
[Token(Token = "0x600943D")]
|
|
[Address(RVA = "0x434BD0", Offset = "0x4339D0", VA = "0x180434BD0", Slot = "7")]
|
|
get
|
|
{
|
|
return this;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600943E RID: 37950 RVA: 0x001E69AC File Offset: 0x001E4BAC
|
|
[Token(Token = "0x600943E")]
|
|
[Address(RVA = "0x171F6C0", Offset = "0x171E4C0", VA = "0x18171F6C0", Slot = "8")]
|
|
public void Dispose()
|
|
{
|
|
HTTPResponse httpresponse = this.<Response>k__BackingField;
|
|
if (httpresponse != 0)
|
|
{
|
|
httpresponse.Dispose();
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600943F RID: 37951 RVA: 0x001E69CC File Offset: 0x001E4BCC
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x600943F")]
|
|
[Address(RVA = "0x1721C00", Offset = "0x1720A00", VA = "0x181721C00")]
|
|
static HTTPRequest()
|
|
{
|
|
byte[] array = new byte[2];
|
|
array[0] = (byte)((ulong)13L);
|
|
array[0] = (byte)((ulong)10L);
|
|
HTTPRequest.EOL = array;
|
|
string[] array2 = new string[8];
|
|
int num = array2.GetHashCode();
|
|
string text;
|
|
if (text != 0)
|
|
{
|
|
}
|
|
array2[0] = text;
|
|
HTTPMethods httpmethods;
|
|
num = httpmethods.GetHashCode();
|
|
string text2;
|
|
if (text2 != 0)
|
|
{
|
|
}
|
|
array2[1] = text2;
|
|
num = text2.GetHashCode();
|
|
string text3;
|
|
if (text3 != 0)
|
|
{
|
|
}
|
|
array2[2] = text3;
|
|
num = text3.GetHashCode();
|
|
string text4;
|
|
if (text4 != 0)
|
|
{
|
|
}
|
|
array2[3] = text4;
|
|
num = text4.GetHashCode();
|
|
string text5;
|
|
if (text5 != 0)
|
|
{
|
|
}
|
|
array2[4] = text5;
|
|
num = text5.GetHashCode();
|
|
string text6;
|
|
if (text6 != 0)
|
|
{
|
|
}
|
|
array2[5] = text6;
|
|
num = text6.GetHashCode();
|
|
string text7;
|
|
if (text7 != 0)
|
|
{
|
|
}
|
|
array2[6] = text7;
|
|
num = text7.GetHashCode();
|
|
string text8;
|
|
if (text8 != 0)
|
|
{
|
|
}
|
|
array2[7] = text8;
|
|
HTTPRequest.MethodNames = array2;
|
|
}
|
|
|
|
// Token: 0x040064D1 RID: 25809
|
|
[Token(Token = "0x40064D1")]
|
|
public static readonly byte[] EOL;
|
|
|
|
// Token: 0x040064D2 RID: 25810
|
|
[Token(Token = "0x40064D2")]
|
|
public static readonly string[] MethodNames;
|
|
|
|
// Token: 0x040064D3 RID: 25811
|
|
[Token(Token = "0x40064D3")]
|
|
public static int UploadChunkSize;
|
|
|
|
// Token: 0x040064DA RID: 25818
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x40064DA")]
|
|
public OnUploadProgressDelegate OnUploadProgress;
|
|
|
|
// Token: 0x040064DD RID: 25821
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40064DD")]
|
|
public OnDownloadProgressDelegate OnProgress;
|
|
|
|
// Token: 0x040064DE RID: 25822
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x40064DE")]
|
|
public OnRequestFinishedDelegate OnUpgraded;
|
|
|
|
// Token: 0x040064EB RID: 25835
|
|
[FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x40064EB")]
|
|
private List<Cookie> customCookies;
|
|
|
|
// Token: 0x040064F9 RID: 25849
|
|
[FieldOffset(Offset = "0x100")]
|
|
[Token(Token = "0x40064F9")]
|
|
private OnBeforeRedirectionDelegate onBeforeRedirection;
|
|
|
|
// Token: 0x040064FA RID: 25850
|
|
[FieldOffset(Offset = "0x108")]
|
|
[Token(Token = "0x40064FA")]
|
|
private OnBeforeHeaderSendDelegate _onBeforeHeaderSend;
|
|
|
|
// Token: 0x04006503 RID: 25859
|
|
[FieldOffset(Offset = "0x149")]
|
|
[Token(Token = "0x4006503")]
|
|
private bool isKeepAlive;
|
|
|
|
// Token: 0x04006504 RID: 25860
|
|
[FieldOffset(Offset = "0x14A")]
|
|
[Token(Token = "0x4006504")]
|
|
private bool disableCache;
|
|
|
|
// Token: 0x04006505 RID: 25861
|
|
[FieldOffset(Offset = "0x14B")]
|
|
[Token(Token = "0x4006505")]
|
|
private bool cacheOnly;
|
|
|
|
// Token: 0x04006506 RID: 25862
|
|
[FieldOffset(Offset = "0x14C")]
|
|
[Token(Token = "0x4006506")]
|
|
private int streamFragmentSize;
|
|
|
|
// Token: 0x04006507 RID: 25863
|
|
[FieldOffset(Offset = "0x150")]
|
|
[Token(Token = "0x4006507")]
|
|
private bool useStreaming;
|
|
|
|
// Token: 0x04006509 RID: 25865
|
|
[FieldOffset(Offset = "0x160")]
|
|
[Token(Token = "0x4006509")]
|
|
private HTTPFormBase FieldCollector;
|
|
|
|
// Token: 0x0400650A RID: 25866
|
|
[FieldOffset(Offset = "0x168")]
|
|
[Token(Token = "0x400650A")]
|
|
private HTTPFormBase FormImpl;
|
|
}
|
|
}
|