Files
2026-04-08 23:40:05 +02:00

2255 lines
87 KiB
C#

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
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 Org.BouncyCastle.Crypto.Tls;
namespace BestHTTP
{
// Token: 0x020012B1 RID: 4785
[Token(Token = "0x20012B1")]
[StructLayout(3)]
public sealed class HTTPRequest : IEnumerator, IEnumerator<HTTPRequest>, IDisposable
{
// Token: 0x17001346 RID: 4934
// (get) Token: 0x06007729 RID: 30505 RVA: 0x0018AF78 File Offset: 0x00189178
// (set) Token: 0x0600772A RID: 30506 RVA: 0x0018AF8C File Offset: 0x0018918C
[Token(Token = "0x17001346")]
public Uri Uri
{
[Token(Token = "0x6007729")]
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
get;
[Token(Token = "0x600772A")]
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
set;
}
// Token: 0x17001347 RID: 4935
// (get) Token: 0x0600772B RID: 30507 RVA: 0x0018AFA0 File Offset: 0x001891A0
// (set) Token: 0x0600772C RID: 30508 RVA: 0x0018AFB4 File Offset: 0x001891B4
[Token(Token = "0x17001347")]
public HTTPMethods MethodType
{
[Token(Token = "0x600772B")]
[Address(RVA = "0x4FBF40", Offset = "0x4FA940", VA = "0x1804FBF40")]
get;
[Token(Token = "0x600772C")]
[Address(RVA = "0x55D5F0", Offset = "0x55BFF0", VA = "0x18055D5F0")]
set;
}
// Token: 0x17001348 RID: 4936
// (get) Token: 0x0600772D RID: 30509 RVA: 0x0018AFC8 File Offset: 0x001891C8
// (set) Token: 0x0600772E RID: 30510 RVA: 0x0018AFDC File Offset: 0x001891DC
[Token(Token = "0x17001348")]
public byte[] RawData
{
[Token(Token = "0x600772D")]
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
get;
[Token(Token = "0x600772E")]
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
set;
}
// Token: 0x17001349 RID: 4937
// (get) Token: 0x0600772F RID: 30511 RVA: 0x0018AFF0 File Offset: 0x001891F0
// (set) Token: 0x06007730 RID: 30512 RVA: 0x0018B004 File Offset: 0x00189204
[Token(Token = "0x17001349")]
public Stream UploadStream
{
[Token(Token = "0x600772F")]
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
get;
[Token(Token = "0x6007730")]
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
set;
}
// Token: 0x1700134A RID: 4938
// (get) Token: 0x06007731 RID: 30513 RVA: 0x0018B018 File Offset: 0x00189218
// (set) Token: 0x06007732 RID: 30514 RVA: 0x0018B02C File Offset: 0x0018922C
[Token(Token = "0x1700134A")]
public bool DisposeUploadStream
{
[Token(Token = "0x6007731")]
[Address(RVA = "0x4CB2D0", Offset = "0x4C9CD0", VA = "0x1804CB2D0")]
get;
[Token(Token = "0x6007732")]
[Address(RVA = "0x4CB340", Offset = "0x4C9D40", VA = "0x1804CB340")]
set;
}
// Token: 0x1700134B RID: 4939
// (get) Token: 0x06007733 RID: 30515 RVA: 0x0018B040 File Offset: 0x00189240
// (set) Token: 0x06007734 RID: 30516 RVA: 0x0018B054 File Offset: 0x00189254
[Token(Token = "0x1700134B")]
public bool UseUploadStreamLength
{
[Token(Token = "0x6007733")]
[Address(RVA = "0x727170", Offset = "0x725B70", VA = "0x180727170")]
get;
[Token(Token = "0x6007734")]
[Address(RVA = "0x7273B0", Offset = "0x725DB0", VA = "0x1807273B0")]
set;
}
// Token: 0x1700134C RID: 4940
// (get) Token: 0x06007735 RID: 30517 RVA: 0x0018B068 File Offset: 0x00189268
// (set) Token: 0x06007736 RID: 30518 RVA: 0x0018B07C File Offset: 0x0018927C
[Token(Token = "0x1700134C")]
public bool IsKeepAlive
{
[Token(Token = "0x6007735")]
[Address(RVA = "0x1C984B0", Offset = "0x1C96EB0", VA = "0x181C984B0")]
get
{
return this.isKeepAlive;
}
[Token(Token = "0x6007736")]
[Address(RVA = "0x1C988C0", Offset = "0x1C972C0", VA = "0x181C988C0")]
set
{
/*
An exception occurred when decompiling this method (06007736)
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: 0x1700134D RID: 4941
// (get) Token: 0x06007737 RID: 30519 RVA: 0x0018B0A4 File Offset: 0x001892A4
// (set) Token: 0x06007738 RID: 30520 RVA: 0x0018B0B8 File Offset: 0x001892B8
[Token(Token = "0x1700134D")]
public bool DisableCache
{
[Token(Token = "0x6007737")]
[Address(RVA = "0x1633650", Offset = "0x1632050", VA = "0x181633650")]
get
{
return this.disableCache;
}
[Token(Token = "0x6007738")]
[Address(RVA = "0x1C98820", Offset = "0x1C97220", VA = "0x181C98820")]
set
{
/*
An exception occurred when decompiling this method (06007738)
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: 0x1700134E RID: 4942
// (get) Token: 0x06007739 RID: 30521 RVA: 0x0018B0E0 File Offset: 0x001892E0
// (set) Token: 0x0600773A RID: 30522 RVA: 0x0018B0F4 File Offset: 0x001892F4
[Token(Token = "0x1700134E")]
public bool CacheOnly
{
[Token(Token = "0x6007739")]
[Address(RVA = "0x1C98400", Offset = "0x1C96E00", VA = "0x181C98400")]
get
{
return this.cacheOnly;
}
[Token(Token = "0x600773A")]
[Address(RVA = "0x1C987A0", Offset = "0x1C971A0", VA = "0x181C987A0")]
set
{
/*
An exception occurred when decompiling this method (0600773A)
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: 0x1700134F RID: 4943
// (get) Token: 0x0600773B RID: 30523 RVA: 0x0018B11C File Offset: 0x0018931C
// (set) Token: 0x0600773C RID: 30524 RVA: 0x0018B130 File Offset: 0x00189330
[Token(Token = "0x1700134F")]
public bool UseStreaming
{
[Token(Token = "0x600773B")]
[Address(RVA = "0x6A8C40", Offset = "0x6A7640", VA = "0x1806A8C40")]
get
{
return this.useStreaming;
}
[Token(Token = "0x600773C")]
[Address(RVA = "0x1C98A10", Offset = "0x1C97410", VA = "0x181C98A10")]
set
{
/*
An exception occurred when decompiling this method (0600773C)
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: 0x17001350 RID: 4944
// (get) Token: 0x0600773D RID: 30525 RVA: 0x0018B158 File Offset: 0x00189358
// (set) Token: 0x0600773E RID: 30526 RVA: 0x0018B16C File Offset: 0x0018936C
[Token(Token = "0x17001350")]
public int StreamFragmentSize
{
[Token(Token = "0x600773D")]
[Address(RVA = "0x3E2510", Offset = "0x3E0F10", VA = "0x1803E2510")]
get
{
return this.streamFragmentSize;
}
[Token(Token = "0x600773E")]
[Address(RVA = "0x1C98950", Offset = "0x1C97350", VA = "0x181C98950")]
set
{
/*
An exception occurred when decompiling this method (0600773E)
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: 0x17001351 RID: 4945
// (get) Token: 0x0600773F RID: 30527 RVA: 0x0018B194 File Offset: 0x00189394
// (set) Token: 0x06007740 RID: 30528 RVA: 0x0018B1A8 File Offset: 0x001893A8
[Token(Token = "0x17001351")]
public int MaxFragmentQueueLength
{
[Token(Token = "0x600773F")]
[Address(RVA = "0x446CA0", Offset = "0x4456A0", VA = "0x180446CA0")]
get;
[Token(Token = "0x6007740")]
[Address(RVA = "0x4564B0", Offset = "0x454EB0", VA = "0x1804564B0")]
set;
}
// Token: 0x17001352 RID: 4946
// (get) Token: 0x06007741 RID: 30529 RVA: 0x0018B1BC File Offset: 0x001893BC
// (set) Token: 0x06007742 RID: 30530 RVA: 0x0018B1D0 File Offset: 0x001893D0
[Token(Token = "0x17001352")]
public OnRequestFinishedDelegate Callback
{
[Token(Token = "0x6007741")]
[Address(RVA = "0x3EDEA0", Offset = "0x3EC8A0", VA = "0x1803EDEA0")]
get;
[Token(Token = "0x6007742")]
[Address(RVA = "0x3EDED0", Offset = "0x3EC8D0", VA = "0x1803EDED0")]
set;
}
// Token: 0x17001353 RID: 4947
// (get) Token: 0x06007743 RID: 30531 RVA: 0x0018B1E4 File Offset: 0x001893E4
// (set) Token: 0x06007744 RID: 30532 RVA: 0x0018B1F8 File Offset: 0x001893F8
[Token(Token = "0x17001353")]
public bool DisableRetry
{
[Token(Token = "0x6007743")]
[Address(RVA = "0x5682D0", Offset = "0x566CD0", VA = "0x1805682D0")]
get;
[Token(Token = "0x6007744")]
[Address(RVA = "0xA4F860", Offset = "0xA4E260", VA = "0x180A4F860")]
set;
}
// Token: 0x17001354 RID: 4948
// (get) Token: 0x06007745 RID: 30533 RVA: 0x0018B20C File Offset: 0x0018940C
// (set) Token: 0x06007746 RID: 30534 RVA: 0x0018B220 File Offset: 0x00189420
[Token(Token = "0x17001354")]
public bool IsRedirected
{
[Token(Token = "0x6007745")]
[Address(RVA = "0x568290", Offset = "0x566C90", VA = "0x180568290")]
get;
[Token(Token = "0x6007746")]
[Address(RVA = "0x5685C0", Offset = "0x566FC0", VA = "0x1805685C0")]
internal set;
}
// Token: 0x17001355 RID: 4949
// (get) Token: 0x06007747 RID: 30535 RVA: 0x0018B234 File Offset: 0x00189434
// (set) Token: 0x06007748 RID: 30536 RVA: 0x0018B248 File Offset: 0x00189448
[Token(Token = "0x17001355")]
public Uri RedirectUri
{
[Token(Token = "0x6007747")]
[Address(RVA = "0x48F050", Offset = "0x48DA50", VA = "0x18048F050")]
get;
[Token(Token = "0x6007748")]
[Address(RVA = "0x52F860", Offset = "0x52E260", VA = "0x18052F860")]
internal set;
}
// Token: 0x17001356 RID: 4950
// (get) Token: 0x06007749 RID: 30537 RVA: 0x0018B25C File Offset: 0x0018945C
[Token(Token = "0x17001356")]
public Uri CurrentUri
{
[Token(Token = "0x6007749")]
[Address(RVA = "0x1C98480", Offset = "0x1C96E80", VA = "0x181C98480")]
get
{
if (this.<IsRedirected>k__BackingField)
{
return this.<RedirectUri>k__BackingField;
}
return this.<Uri>k__BackingField;
}
}
// Token: 0x17001357 RID: 4951
// (get) Token: 0x0600774A RID: 30538 RVA: 0x0018B280 File Offset: 0x00189480
// (set) Token: 0x0600774B RID: 30539 RVA: 0x0018B294 File Offset: 0x00189494
[Token(Token = "0x17001357")]
public HTTPResponse Response
{
[Token(Token = "0x600774A")]
[Address(RVA = "0x4D2570", Offset = "0x4D0F70", VA = "0x1804D2570")]
get;
[Token(Token = "0x600774B")]
[Address(RVA = "0x7D4760", Offset = "0x7D3160", VA = "0x1807D4760")]
internal set;
}
// Token: 0x17001358 RID: 4952
// (get) Token: 0x0600774C RID: 30540 RVA: 0x0018B2A8 File Offset: 0x001894A8
// (set) Token: 0x0600774D RID: 30541 RVA: 0x0018B2BC File Offset: 0x001894BC
[Token(Token = "0x17001358")]
public HTTPResponse ProxyResponse
{
[Token(Token = "0x600774C")]
[Address(RVA = "0x501250", Offset = "0x4FFC50", VA = "0x180501250")]
get;
[Token(Token = "0x600774D")]
[Address(RVA = "0x52F850", Offset = "0x52E250", VA = "0x18052F850")]
internal set;
}
// Token: 0x17001359 RID: 4953
// (get) Token: 0x0600774E RID: 30542 RVA: 0x0018B2D0 File Offset: 0x001894D0
// (set) Token: 0x0600774F RID: 30543 RVA: 0x0018B2E4 File Offset: 0x001894E4
[Token(Token = "0x17001359")]
public Exception Exception
{
[Token(Token = "0x600774E")]
[Address(RVA = "0x52F5A0", Offset = "0x52DFA0", VA = "0x18052F5A0")]
get;
[Token(Token = "0x600774F")]
[Address(RVA = "0x52F840", Offset = "0x52E240", VA = "0x18052F840")]
internal set;
}
// Token: 0x1700135A RID: 4954
// (get) Token: 0x06007750 RID: 30544 RVA: 0x0018B2F8 File Offset: 0x001894F8
// (set) Token: 0x06007751 RID: 30545 RVA: 0x0018B30C File Offset: 0x0018950C
[Token(Token = "0x1700135A")]
public object Tag
{
[Token(Token = "0x6007750")]
[Address(RVA = "0x6361F0", Offset = "0x634BF0", VA = "0x1806361F0")]
get;
[Token(Token = "0x6007751")]
[Address(RVA = "0x636220", Offset = "0x634C20", VA = "0x180636220")]
set;
}
// Token: 0x1700135B RID: 4955
// (get) Token: 0x06007752 RID: 30546 RVA: 0x0018B320 File Offset: 0x00189520
// (set) Token: 0x06007753 RID: 30547 RVA: 0x0018B334 File Offset: 0x00189534
[Token(Token = "0x1700135B")]
public Credentials Credentials
{
[Token(Token = "0x6007752")]
[Address(RVA = "0x4BD780", Offset = "0x4BC180", VA = "0x1804BD780")]
get;
[Token(Token = "0x6007753")]
[Address(RVA = "0x58B330", Offset = "0x589D30", VA = "0x18058B330")]
set;
}
// Token: 0x1700135C RID: 4956
// (get) Token: 0x06007754 RID: 30548 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x1700135C")]
public bool HasProxy
{
[Token(Token = "0x6007754")]
[Address(RVA = "0x1C98490", Offset = "0x1C96E90", VA = "0x181C98490")]
get
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
}
// Token: 0x1700135D RID: 4957
// (get) Token: 0x06007755 RID: 30549 RVA: 0x0018B348 File Offset: 0x00189548
// (set) Token: 0x06007756 RID: 30550 RVA: 0x0018B35C File Offset: 0x0018955C
[Token(Token = "0x1700135D")]
public Proxy Proxy
{
[Token(Token = "0x6007755")]
[Address(RVA = "0x4D66C0", Offset = "0x4D50C0", VA = "0x1804D66C0")]
get;
[Token(Token = "0x6007756")]
[Address(RVA = "0x4D6780", Offset = "0x4D5180", VA = "0x1804D6780")]
set;
}
// Token: 0x1700135E RID: 4958
// (get) Token: 0x06007757 RID: 30551 RVA: 0x0018B370 File Offset: 0x00189570
// (set) Token: 0x06007758 RID: 30552 RVA: 0x0018B384 File Offset: 0x00189584
[Token(Token = "0x1700135E")]
public int MaxRedirects
{
[Token(Token = "0x6007757")]
[Address(RVA = "0xE35290", Offset = "0xE33C90", VA = "0x180E35290")]
get;
[Token(Token = "0x6007758")]
[Address(RVA = "0xE4A550", Offset = "0xE48F50", VA = "0x180E4A550")]
set;
}
// Token: 0x1700135F RID: 4959
// (get) Token: 0x06007759 RID: 30553 RVA: 0x0018B398 File Offset: 0x00189598
// (set) Token: 0x0600775A RID: 30554 RVA: 0x0018B3AC File Offset: 0x001895AC
[Token(Token = "0x1700135F")]
public bool UseAlternateSSL
{
[Token(Token = "0x6007759")]
[Address(RVA = "0xE4A540", Offset = "0xE48F40", VA = "0x180E4A540")]
get;
[Token(Token = "0x600775A")]
[Address(RVA = "0xE4A560", Offset = "0xE48F60", VA = "0x180E4A560")]
set;
}
// Token: 0x17001360 RID: 4960
// (get) Token: 0x0600775B RID: 30555 RVA: 0x0018B3C0 File Offset: 0x001895C0
// (set) Token: 0x0600775C RID: 30556 RVA: 0x0018B3D4 File Offset: 0x001895D4
[Token(Token = "0x17001360")]
public bool IsCookiesEnabled
{
[Token(Token = "0x600775B")]
[Address(RVA = "0x1C984A0", Offset = "0x1C96EA0", VA = "0x181C984A0")]
get;
[Token(Token = "0x600775C")]
[Address(RVA = "0x1C988B0", Offset = "0x1C972B0", VA = "0x181C988B0")]
set;
}
// Token: 0x17001361 RID: 4961
// (get) Token: 0x0600775D RID: 30557 RVA: 0x0018B3E8 File Offset: 0x001895E8
// (set) Token: 0x0600775E RID: 30558 RVA: 0x0018B410 File Offset: 0x00189610
[Token(Token = "0x17001361")]
public List<Cookie> Cookies
{
[Token(Token = "0x600775D")]
[Address(RVA = "0x1C98410", Offset = "0x1C96E10", VA = "0x181C98410")]
get
{
List<Cookie> list = this.customCookies;
if (list == 0)
{
List<Cookie> list2 = new List();
this.customCookies = list2;
}
return list;
}
[Token(Token = "0x600775E")]
[Address(RVA = "0x3D3450", Offset = "0x3D1E50", VA = "0x1803D3450")]
set
{
this.customCookies = value;
}
}
// Token: 0x17001362 RID: 4962
// (get) Token: 0x0600775F RID: 30559 RVA: 0x0018B424 File Offset: 0x00189624
// (set) Token: 0x06007760 RID: 30560 RVA: 0x0018B438 File Offset: 0x00189638
[Token(Token = "0x17001362")]
public HTTPFormUsage FormUsage
{
[Token(Token = "0x600775F")]
[Address(RVA = "0x7D79A0", Offset = "0x7D63A0", VA = "0x1807D79A0")]
get;
[Token(Token = "0x6007760")]
[Address(RVA = "0x7D7A80", Offset = "0x7D6480", VA = "0x1807D7A80")]
set;
}
// Token: 0x17001363 RID: 4963
// (get) Token: 0x06007761 RID: 30561 RVA: 0x0018B44C File Offset: 0x0018964C
// (set) Token: 0x06007762 RID: 30562 RVA: 0x0018B460 File Offset: 0x00189660
[Token(Token = "0x17001363")]
public HTTPRequestStates State
{
[Token(Token = "0x6007761")]
[Address(RVA = "0xA2AAD0", Offset = "0xA294D0", VA = "0x180A2AAD0")]
get;
[Token(Token = "0x6007762")]
[Address(RVA = "0xAD49E0", Offset = "0xAD33E0", VA = "0x180AD49E0")]
internal set;
}
// Token: 0x17001364 RID: 4964
// (get) Token: 0x06007763 RID: 30563 RVA: 0x0018B474 File Offset: 0x00189674
// (set) Token: 0x06007764 RID: 30564 RVA: 0x0018B488 File Offset: 0x00189688
[Token(Token = "0x17001364")]
public int RedirectCount
{
[Token(Token = "0x6007763")]
[Address(RVA = "0x6C10D0", Offset = "0x6BFAD0", VA = "0x1806C10D0")]
get;
[Token(Token = "0x6007764")]
[Address(RVA = "0xE4A570", Offset = "0xE48F70", VA = "0x180E4A570")]
internal set;
}
// Token: 0x140000A7 RID: 167
// (add) Token: 0x06007765 RID: 30565 RVA: 0x0018B49C File Offset: 0x0018969C
// (remove) Token: 0x06007766 RID: 30566 RVA: 0x0018B4B8 File Offset: 0x001896B8
[Token(Token = "0x140000A7")]
public event Func<HTTPRequest, X509Certificate, X509Chain, bool> CustomCertificationValidator
{
[Token(Token = "0x6007765")]
[Address(RVA = "0x1C981A0", Offset = "0x1C96BA0", VA = "0x181C981A0")]
[CompilerGenerated]
add
{
Delegate @delegate;
while (@delegate != 0 && @delegate == 0)
{
}
while (@delegate != this)
{
}
}
[Token(Token = "0x6007766")]
[Address(RVA = "0x1C98540", Offset = "0x1C96F40", VA = "0x181C98540")]
[CompilerGenerated]
remove
{
Delegate @delegate;
while (@delegate != 0 && @delegate == 0)
{
}
while (@delegate != this)
{
}
}
}
// Token: 0x17001365 RID: 4965
// (get) Token: 0x06007767 RID: 30567 RVA: 0x0018B4D4 File Offset: 0x001896D4
// (set) Token: 0x06007768 RID: 30568 RVA: 0x0018B4E8 File Offset: 0x001896E8
[Token(Token = "0x17001365")]
public TimeSpan ConnectTimeout
{
[Token(Token = "0x6007767")]
[Address(RVA = "0x3EFAF0", Offset = "0x3EE4F0", VA = "0x1803EFAF0")]
get;
[Token(Token = "0x6007768")]
[Address(RVA = "0x3F0040", Offset = "0x3EEA40", VA = "0x1803F0040")]
set;
}
// Token: 0x17001366 RID: 4966
// (get) Token: 0x06007769 RID: 30569 RVA: 0x0018B4FC File Offset: 0x001896FC
// (set) Token: 0x0600776A RID: 30570 RVA: 0x0018B510 File Offset: 0x00189710
[Token(Token = "0x17001366")]
public TimeSpan Timeout
{
[Token(Token = "0x6007769")]
[Address(RVA = "0x3D3180", Offset = "0x3D1B80", VA = "0x1803D3180")]
get;
[Token(Token = "0x600776A")]
[Address(RVA = "0x3D3350", Offset = "0x3D1D50", VA = "0x1803D3350")]
set;
}
// Token: 0x17001367 RID: 4967
// (get) Token: 0x0600776B RID: 30571 RVA: 0x0018B524 File Offset: 0x00189724
// (set) Token: 0x0600776C RID: 30572 RVA: 0x0018B538 File Offset: 0x00189738
[Token(Token = "0x17001367")]
public bool EnableTimoutForStreaming
{
[Token(Token = "0x600776B")]
[Address(RVA = "0x10D4F80", Offset = "0x10D3980", VA = "0x1810D4F80")]
get;
[Token(Token = "0x600776C")]
[Address(RVA = "0x10D4980", Offset = "0x10D3380", VA = "0x1810D4980")]
set;
}
// Token: 0x17001368 RID: 4968
// (get) Token: 0x0600776D RID: 30573 RVA: 0x0018B54C File Offset: 0x0018974C
// (set) Token: 0x0600776E RID: 30574 RVA: 0x0018B560 File Offset: 0x00189760
[Token(Token = "0x17001368")]
public bool EnableSafeReadOnUnknownContentLength
{
[Token(Token = "0x600776D")]
[Address(RVA = "0x10D5070", Offset = "0x10D3A70", VA = "0x1810D5070")]
get;
[Token(Token = "0x600776E")]
[Address(RVA = "0x10D4BF0", Offset = "0x10D35F0", VA = "0x1810D4BF0")]
set;
}
// Token: 0x17001369 RID: 4969
// (get) Token: 0x0600776F RID: 30575 RVA: 0x0018B574 File Offset: 0x00189774
// (set) Token: 0x06007770 RID: 30576 RVA: 0x0018B588 File Offset: 0x00189788
[Token(Token = "0x17001369")]
public int Priority
{
[Token(Token = "0x600776F")]
[Address(RVA = "0xCC2D90", Offset = "0xCC1790", VA = "0x180CC2D90")]
get;
[Token(Token = "0x6007770")]
[Address(RVA = "0xCC2E40", Offset = "0xCC1840", VA = "0x180CC2E40")]
set;
}
// Token: 0x1700136A RID: 4970
// (get) Token: 0x06007771 RID: 30577 RVA: 0x0018B59C File Offset: 0x0018979C
// (set) Token: 0x06007772 RID: 30578 RVA: 0x0018B5B0 File Offset: 0x001897B0
[Token(Token = "0x1700136A")]
public ICertificateVerifyer CustomCertificateVerifyer
{
[Token(Token = "0x6007771")]
[Address(RVA = "0x3D3300", Offset = "0x3D1D00", VA = "0x1803D3300")]
get;
[Token(Token = "0x6007772")]
[Address(RVA = "0x3D3470", Offset = "0x3D1E70", VA = "0x1803D3470")]
set;
}
// Token: 0x1700136B RID: 4971
// (get) Token: 0x06007773 RID: 30579 RVA: 0x0018B5C4 File Offset: 0x001897C4
// (set) Token: 0x06007774 RID: 30580 RVA: 0x0018B5D8 File Offset: 0x001897D8
[Token(Token = "0x1700136B")]
public IClientCredentialsProvider CustomClientCredentialsProvider
{
[Token(Token = "0x6007773")]
[Address(RVA = "0x3D32A0", Offset = "0x3D1CA0", VA = "0x1803D32A0")]
get;
[Token(Token = "0x6007774")]
[Address(RVA = "0x3D3440", Offset = "0x3D1E40", VA = "0x1803D3440")]
set;
}
// Token: 0x1700136C RID: 4972
// (get) Token: 0x06007775 RID: 30581 RVA: 0x0018B5EC File Offset: 0x001897EC
// (set) Token: 0x06007776 RID: 30582 RVA: 0x0018B600 File Offset: 0x00189800
[Token(Token = "0x1700136C")]
public List<string> CustomTLSServerNameList
{
[Token(Token = "0x6007775")]
[Address(RVA = "0x3CBF50", Offset = "0x3CA950", VA = "0x1803CBF50")]
get;
[Token(Token = "0x6007776")]
[Address(RVA = "0x3F0030", Offset = "0x3EEA30", VA = "0x1803F0030")]
set;
}
// Token: 0x1700136D RID: 4973
// (get) Token: 0x06007777 RID: 30583 RVA: 0x0018B614 File Offset: 0x00189814
// (set) Token: 0x06007778 RID: 30584 RVA: 0x0018B628 File Offset: 0x00189828
[Token(Token = "0x1700136D")]
public SupportedProtocols ProtocolHandler
{
[Token(Token = "0x6007777")]
[Address(RVA = "0xACB270", Offset = "0xAC9C70", VA = "0x180ACB270")]
get;
[Token(Token = "0x6007778")]
[Address(RVA = "0x1C98940", Offset = "0x1C97340", VA = "0x181C98940")]
set;
}
// Token: 0x140000A8 RID: 168
// (add) Token: 0x06007779 RID: 30585 RVA: 0x0018B63C File Offset: 0x0018983C
// (remove) Token: 0x0600777A RID: 30586 RVA: 0x0018B670 File Offset: 0x00189870
[Token(Token = "0x140000A8")]
public event OnBeforeRedirectionDelegate OnBeforeRedirection
{
[Token(Token = "0x6007779")]
[Address(RVA = "0x1C982D0", Offset = "0x1C96CD0", VA = "0x181C982D0")]
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 = "0x600777A")]
[Address(RVA = "0x1C98670", Offset = "0x1C97070", VA = "0x181C98670")]
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: 0x140000A9 RID: 169
// (add) Token: 0x0600777B RID: 30587 RVA: 0x0018B6A4 File Offset: 0x001898A4
// (remove) Token: 0x0600777C RID: 30588 RVA: 0x0018B6D8 File Offset: 0x001898D8
[Token(Token = "0x140000A9")]
public event OnBeforeHeaderSendDelegate OnBeforeHeaderSend
{
[Token(Token = "0x600777B")]
[Address(RVA = "0x1C98240", Offset = "0x1C96C40", VA = "0x181C98240")]
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 = "0x600777C")]
[Address(RVA = "0x1C985E0", Offset = "0x1C96FE0", VA = "0x181C985E0")]
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: 0x140000AA RID: 170
// (add) Token: 0x0600777D RID: 30589 RVA: 0x0018B70C File Offset: 0x0018990C
// (remove) Token: 0x0600777E RID: 30590 RVA: 0x0018B728 File Offset: 0x00189928
[Token(Token = "0x140000AA")]
public event Action<HTTPRequest, Stream> OnSendingHeaders
{
[Token(Token = "0x600777D")]
[Address(RVA = "0x1C98360", Offset = "0x1C96D60", VA = "0x181C98360")]
[CompilerGenerated]
add
{
Delegate @delegate;
while (@delegate != 0 && @delegate == 0)
{
}
while (@delegate != this)
{
}
}
[Token(Token = "0x600777E")]
[Address(RVA = "0x1C98700", Offset = "0x1C97100", VA = "0x181C98700")]
[CompilerGenerated]
remove
{
Delegate @delegate;
while (@delegate != 0 && @delegate == 0)
{
}
while (@delegate != this)
{
}
}
}
// Token: 0x1700136E RID: 4974
// (get) Token: 0x0600777F RID: 30591 RVA: 0x0018B744 File Offset: 0x00189944
// (set) Token: 0x06007780 RID: 30592 RVA: 0x0018B758 File Offset: 0x00189958
[Token(Token = "0x1700136E")]
public bool TryToMinimizeTCPLatency
{
[Token(Token = "0x600777F")]
[Address(RVA = "0x1684CD0", Offset = "0x16836D0", VA = "0x181684CD0")]
get;
[Token(Token = "0x6007780")]
[Address(RVA = "0xF98F40", Offset = "0xF97940", VA = "0x180F98F40")]
set;
}
// Token: 0x1700136F RID: 4975
// (get) Token: 0x06007781 RID: 30593 RVA: 0x0018B76C File Offset: 0x0018996C
// (set) Token: 0x06007782 RID: 30594 RVA: 0x0018B780 File Offset: 0x00189980
[Token(Token = "0x1700136F")]
internal long Downloaded
{
[Token(Token = "0x6007781")]
[Address(RVA = "0x3D3280", Offset = "0x3D1C80", VA = "0x1803D3280")]
get;
[Token(Token = "0x6007782")]
[Address(RVA = "0x3D3420", Offset = "0x3D1E20", VA = "0x1803D3420")]
set;
}
// Token: 0x17001370 RID: 4976
// (get) Token: 0x06007783 RID: 30595 RVA: 0x0018B794 File Offset: 0x00189994
// (set) Token: 0x06007784 RID: 30596 RVA: 0x0018B7A8 File Offset: 0x001899A8
[Token(Token = "0x17001370")]
internal long DownloadLength
{
[Token(Token = "0x6007783")]
[Address(RVA = "0x3CBF20", Offset = "0x3CA920", VA = "0x1803CBF20")]
get;
[Token(Token = "0x6007784")]
[Address(RVA = "0x3CBFB0", Offset = "0x3CA9B0", VA = "0x1803CBFB0")]
set;
}
// Token: 0x17001371 RID: 4977
// (get) Token: 0x06007785 RID: 30597 RVA: 0x0018B7BC File Offset: 0x001899BC
// (set) Token: 0x06007786 RID: 30598 RVA: 0x0018B7D0 File Offset: 0x001899D0
[Token(Token = "0x17001371")]
internal bool DownloadProgressChanged
{
[Token(Token = "0x6007785")]
[Address(RVA = "0x16FD880", Offset = "0x16FC280", VA = "0x1816FD880")]
get;
[Token(Token = "0x6007786")]
[Address(RVA = "0x1C988A0", Offset = "0x1C972A0", VA = "0x181C988A0")]
set;
}
// Token: 0x17001372 RID: 4978
// (get) Token: 0x06007787 RID: 30599 RVA: 0x0018B7E4 File Offset: 0x001899E4
[Token(Token = "0x17001372")]
internal long UploadStreamLength
{
[Token(Token = "0x6007787")]
[Address(RVA = "0x1C984C0", Offset = "0x1C96EC0", VA = "0x181C984C0")]
get
{
if (this.<UploadStream>k__BackingField != (ulong)0L && this.<UseUploadStreamLength>k__BackingField)
{
bool canWrite = this.<UploadStream>k__BackingField.CanWrite;
}
throw new NullReferenceException();
}
}
// Token: 0x17001373 RID: 4979
// (get) Token: 0x06007788 RID: 30600 RVA: 0x0018B818 File Offset: 0x00189A18
// (set) Token: 0x06007789 RID: 30601 RVA: 0x0018B82C File Offset: 0x00189A2C
[Token(Token = "0x17001373")]
internal long Uploaded
{
[Token(Token = "0x6007788")]
[Address(RVA = "0xA01750", Offset = "0xA00150", VA = "0x180A01750")]
get;
[Token(Token = "0x6007789")]
[Address(RVA = "0xA5DB40", Offset = "0xA5C540", VA = "0x180A5DB40")]
set;
}
// Token: 0x17001374 RID: 4980
// (get) Token: 0x0600778A RID: 30602 RVA: 0x0018B840 File Offset: 0x00189A40
// (set) Token: 0x0600778B RID: 30603 RVA: 0x0018B854 File Offset: 0x00189A54
[Token(Token = "0x17001374")]
internal long UploadLength
{
[Token(Token = "0x600778A")]
[Address(RVA = "0x50B760", Offset = "0x50A160", VA = "0x18050B760")]
get;
[Token(Token = "0x600778B")]
[Address(RVA = "0x103E550", Offset = "0x103CF50", VA = "0x18103E550")]
set;
}
// Token: 0x17001375 RID: 4981
// (get) Token: 0x0600778C RID: 30604 RVA: 0x0018B868 File Offset: 0x00189A68
// (set) Token: 0x0600778D RID: 30605 RVA: 0x0018B87C File Offset: 0x00189A7C
[Token(Token = "0x17001375")]
internal bool UploadProgressChanged
{
[Token(Token = "0x600778C")]
[Address(RVA = "0xC94530", Offset = "0xC92F30", VA = "0x180C94530")]
get;
[Token(Token = "0x600778D")]
[Address(RVA = "0x1C98A00", Offset = "0x1C97400", VA = "0x181C98A00")]
set;
}
// Token: 0x17001376 RID: 4982
// (get) Token: 0x0600778E RID: 30606 RVA: 0x0018B890 File Offset: 0x00189A90
// (set) Token: 0x0600778F RID: 30607 RVA: 0x0018B8A4 File Offset: 0x00189AA4
[Token(Token = "0x17001376")]
private Dictionary<string, List<string>> Headers
{
[Token(Token = "0x600778E")]
[Address(RVA = "0x50B6F0", Offset = "0x50A0F0", VA = "0x18050B6F0")]
get;
[Token(Token = "0x600778F")]
[Address(RVA = "0x103E600", Offset = "0x103D000", VA = "0x18103E600")]
set;
}
// Token: 0x06007790 RID: 30608 RVA: 0x0018B8B8 File Offset: 0x00189AB8
[Token(Token = "0x6007790")]
[Address(RVA = "0x1C97AE0", Offset = "0x1C964E0", VA = "0x181C97AE0")]
public HTTPRequest(Uri uri)
{
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
bool <IsCachingDisabled>k__BackingField = HTTPManager.<IsCachingDisabled>k__BackingField;
}
// Token: 0x06007791 RID: 30609 RVA: 0x0018B8D8 File Offset: 0x00189AD8
[Token(Token = "0x6007791")]
[Address(RVA = "0x1C97610", Offset = "0x1C96010", VA = "0x181C97610")]
public HTTPRequest(Uri uri, OnRequestFinishedDelegate callback)
{
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
bool <IsCachingDisabled>k__BackingField = HTTPManager.<IsCachingDisabled>k__BackingField;
}
// Token: 0x06007792 RID: 30610 RVA: 0x0018B8F4 File Offset: 0x00189AF4
[Token(Token = "0x6007792")]
[Address(RVA = "0x1C979F0", Offset = "0x1C963F0", VA = "0x181C979F0")]
public HTTPRequest(Uri uri, bool isKeepAlive, OnRequestFinishedDelegate callback)
{
bool <IsCachingDisabled>k__BackingField = HTTPManager.<IsCachingDisabled>k__BackingField;
}
// Token: 0x06007793 RID: 30611 RVA: 0x0018B90C File Offset: 0x00189B0C
[Token(Token = "0x6007793")]
[Address(RVA = "0x1C975E0", Offset = "0x1C95FE0", VA = "0x181C975E0")]
public HTTPRequest(Uri uri, bool isKeepAlive, bool disableCache, OnRequestFinishedDelegate callback)
{
}
// Token: 0x06007794 RID: 30612 RVA: 0x0018B91C File Offset: 0x00189B1C
[Token(Token = "0x6007794")]
[Address(RVA = "0x1C97740", Offset = "0x1C96140", VA = "0x181C97740")]
public HTTPRequest(Uri uri, HTTPMethods methodType)
{
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
}
// Token: 0x06007795 RID: 30613 RVA: 0x0018B938 File Offset: 0x00189B38
[Token(Token = "0x6007795")]
[Address(RVA = "0x1C97890", Offset = "0x1C96290", VA = "0x181C97890")]
public HTTPRequest(Uri uri, HTTPMethods methodType, OnRequestFinishedDelegate callback)
{
bool <KeepAliveDefaultValue>k__BackingField = HTTPManager.<KeepAliveDefaultValue>k__BackingField;
}
// Token: 0x06007796 RID: 30614 RVA: 0x0018B954 File Offset: 0x00189B54
[Token(Token = "0x6007796")]
[Address(RVA = "0x1C974D0", Offset = "0x1C95ED0", VA = "0x181C974D0")]
public HTTPRequest(Uri uri, HTTPMethods methodType, bool isKeepAlive, OnRequestFinishedDelegate callback)
{
}
// Token: 0x06007797 RID: 30615 RVA: 0x0018B968 File Offset: 0x00189B68
[Token(Token = "0x6007797")]
[Address(RVA = "0x1C97C00", Offset = "0x1C96600", VA = "0x181C97C00")]
public HTTPRequest(Uri uri, HTTPMethods methodType, bool isKeepAlive, bool disableCache, OnRequestFinishedDelegate callback)
{
/*
An exception occurred when decompiling this method (06007797)
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: 0x06007798 RID: 30616 RVA: 0x0018BAE8 File Offset: 0x00189CE8
[Token(Token = "0x6007798")]
[Address(RVA = "0x1C94420", Offset = "0x1C92E20", VA = "0x181C94420")]
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: 0x06007799 RID: 30617 RVA: 0x0018BB24 File Offset: 0x00189D24
[Token(Token = "0x6007799")]
[Address(RVA = "0x1C944E0", Offset = "0x1C92EE0", VA = "0x181C944E0")]
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: 0x0600779A RID: 30618 RVA: 0x0018BB60 File Offset: 0x00189D60
[Token(Token = "0x600779A")]
[Address(RVA = "0x1C94330", Offset = "0x1C92D30", VA = "0x181C94330")]
public void AddBinaryData(string fieldName, byte[] content)
{
int num = 0;
int num2 = 0;
this.AddBinaryData(fieldName, content, num2, num);
}
// Token: 0x0600779B RID: 30619 RVA: 0x0018BB7C File Offset: 0x00189D7C
[Token(Token = "0x600779B")]
[Address(RVA = "0x1C94350", Offset = "0x1C92D50", VA = "0x181C94350")]
public void AddBinaryData(string fieldName, byte[] content, string fileName)
{
int num = 0;
this.AddBinaryData(fieldName, content, fileName, num);
}
// Token: 0x0600779C RID: 30620 RVA: 0x0018BB98 File Offset: 0x00189D98
[Token(Token = "0x600779C")]
[Address(RVA = "0x1C94370", Offset = "0x1C92D70", VA = "0x181C94370")]
public void AddBinaryData(string fieldName, byte[] content, string fileName, string mimeType)
{
if (this.FieldCollector == 0)
{
HTTPFormBase httpformBase = new HTTPFormBase();
this.FieldCollector = httpformBase;
}
}
// Token: 0x0600779D RID: 30621 RVA: 0x0018BBC4 File Offset: 0x00189DC4
[Token(Token = "0x600779D")]
[Address(RVA = "0x1042980", Offset = "0x1041380", VA = "0x181042980")]
public void SetForm(HTTPFormBase form)
{
this.FormImpl = form;
}
// Token: 0x0600779E RID: 30622 RVA: 0x0018BBD8 File Offset: 0x00189DD8
[Token(Token = "0x600779E")]
[Address(RVA = "0x1C95AC0", Offset = "0x1C944C0", VA = "0x181C95AC0")]
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: 0x0600779F RID: 30623 RVA: 0x0018BC14 File Offset: 0x00189E14
[Token(Token = "0x600779F")]
[Address(RVA = "0x1C94840", Offset = "0x1C93240", VA = "0x181C94840")]
public void ClearForm()
{
int num = 0;
this.FormImpl = num;
this.FieldCollector = num;
}
// Token: 0x060077A0 RID: 30624 RVA: 0x0018BC34 File Offset: 0x00189E34
[Token(Token = "0x60077A0")]
[Address(RVA = "0x1C95D60", Offset = "0x1C94760", VA = "0x181C95D60")]
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 text;
httpmultiPartForm.Boundary = text;
this.FormImpl = httpmultiPartForm;
string text2 = httpmultiPartForm.ToString();
}
return formImpl;
}
// Token: 0x060077A1 RID: 30625 RVA: 0x0018BCB4 File Offset: 0x00189EB4
[Token(Token = "0x60077A1")]
[Address(RVA = "0x1C94590", Offset = "0x1C92F90", VA = "0x181C94590")]
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: 0x060077A2 RID: 30626 RVA: 0x0018BD04 File Offset: 0x00189F04
[Token(Token = "0x60077A2")]
[Address(RVA = "0x1C96A90", Offset = "0x1C95490", VA = "0x181C96A90")]
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: 0x060077A3 RID: 30627 RVA: 0x0018BD58 File Offset: 0x00189F58
[Token(Token = "0x60077A3")]
[Address(RVA = "0x1C95C60", Offset = "0x1C94660", VA = "0x181C95C60")]
public bool RemoveHeader(string name)
{
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
if (dictionary != 0)
{
return dictionary.Remove(name);
}
}
// Token: 0x060077A4 RID: 30628 RVA: 0x0018BD7C File Offset: 0x00189F7C
[Token(Token = "0x60077A4")]
[Address(RVA = "0x1C95BF0", Offset = "0x1C945F0", VA = "0x181C95BF0")]
public bool HasHeader(string name)
{
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
if (dictionary == 0)
{
}
return dictionary.ContainsKey(name);
}
// Token: 0x060077A5 RID: 30629 RVA: 0x0018BDA0 File Offset: 0x00189FA0
[Token(Token = "0x60077A5")]
[Address(RVA = "0x1C95A20", Offset = "0x1C94420", VA = "0x181C95A20")]
public string GetFirstHeaderValue(string name)
{
bool flag;
if (this.<Headers>k__BackingField != 0 && flag && flag > false && !flag)
{
ThrowHelper.ThrowArgumentOutOfRangeException();
}
throw new NullReferenceException();
}
// Token: 0x060077A6 RID: 30630 RVA: 0x0018BDD0 File Offset: 0x00189FD0
[Token(Token = "0x60077A6")]
[Address(RVA = "0x1C95B70", Offset = "0x1C94570", VA = "0x181C95B70")]
public List<string> GetHeaderValues(string name)
{
bool flag;
if (this.<Headers>k__BackingField == 0 || flag)
{
}
throw new NullReferenceException();
}
// Token: 0x060077A7 RID: 30631 RVA: 0x0018BDF4 File Offset: 0x00189FF4
[Token(Token = "0x60077A7")]
[Address(RVA = "0x1C95CC0", Offset = "0x1C946C0", VA = "0x181C95CC0")]
public void RemoveHeaders()
{
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
if (dictionary != 0)
{
dictionary.Clear();
return;
}
}
// Token: 0x060077A8 RID: 30632 RVA: 0x0018BE14 File Offset: 0x0018A014
[Token(Token = "0x60077A8")]
[Address(RVA = "0x1C96C60", Offset = "0x1C95660", VA = "0x181C96C60")]
public void SetRangeHeader(int firstBytePos)
{
string text = string.Format("bytes={0}-", firstBytePos);
this.SetHeader("Range", text);
}
// Token: 0x060077A9 RID: 30633 RVA: 0x0018BE3C File Offset: 0x0018A03C
[Token(Token = "0x60077A9")]
[Address(RVA = "0x1C96BC0", Offset = "0x1C955C0", VA = "0x181C96BC0")]
public void SetRangeHeader(int firstBytePos, int lastBytePos)
{
string text = string.Format("bytes={0}-{1}", firstBytePos, lastBytePos);
this.SetHeader("Range", text);
}
// Token: 0x060077AA RID: 30634 RVA: 0x0018BE64 File Offset: 0x0018A064
[Token(Token = "0x60077AA")]
[Address(RVA = "0x1C958C0", Offset = "0x1C942C0", VA = "0x181C958C0")]
public void EnumerateHeaders(OnHeaderEnumerationDelegate callback)
{
int num = 0;
this.EnumerateHeaders(callback, num != 0);
}
// Token: 0x060077AB RID: 30635 RVA: 0x0018BE7C File Offset: 0x0018A07C
[Token(Token = "0x60077AB")]
[Address(RVA = "0x1C94B20", Offset = "0x1C93520", VA = "0x181C94B20")]
public void EnumerateHeaders(OnHeaderEnumerationDelegate callback, bool callBeforeSendCallback)
{
for (;;)
{
int num = 0;
Dictionary<string, List<string>> dictionary = this.<Headers>k__BackingField;
if (dictionary == 0 || !dictionary.ContainsKey("Host"))
{
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
}
if (this.<Uri>k__BackingField.Port != 80)
{
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
}
if (this.<Uri>k__BackingField.Port != 443)
{
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
}
string authority = this.<Uri>k__BackingField.Authority;
}
}
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
}
string host = this.<Uri>k__BackingField.Host;
this.SetHeader("Host", host);
}
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
Dictionary<string, List<string>> dictionary2 = this.<Headers>k__BackingField;
if (dictionary2 == 0 || !dictionary2.ContainsKey("Referer"))
{
int hashCode = this.<Uri>k__BackingField.GetHashCode();
}
}
Dictionary<string, List<string>> dictionary3 = this.<Headers>k__BackingField;
if (dictionary3 == 0 || !dictionary3.ContainsKey("Accept-Encoding"))
{
this.AddHeader("Accept-Encoding", "gzip, identity");
}
if (this.<Proxy>k__BackingField > num)
{
Dictionary<string, List<string>> dictionary4 = this.<Headers>k__BackingField;
if (dictionary4 == 0 || !dictionary4.ContainsKey("Proxy-Connection"))
{
if ((this.isKeepAlive ? 1 : 0) == num)
{
}
this.AddHeader("Proxy-Connection", "Close");
}
}
Dictionary<string, List<string>> dictionary5 = this.<Headers>k__BackingField;
if (dictionary5 == 0 || !dictionary5.ContainsKey("Connection"))
{
if ((this.isKeepAlive ? 1 : 0) == num)
{
}
this.AddHeader("Connection", "Close, TE");
}
Dictionary<string, List<string>> dictionary6 = this.<Headers>k__BackingField;
if (dictionary6 == 0 || !dictionary6.ContainsKey("TE"))
{
this.AddHeader("TE", "identity");
}
Dictionary<string, List<string>> dictionary7 = this.<Headers>k__BackingField;
if (dictionary7 == 0 || !dictionary7.ContainsKey("User-Agent"))
{
this.AddHeader("User-Agent", "BestHTTP");
}
if (this.<UploadStream>k__BackingField == num)
{
goto IL_1FD;
}
long uploadStreamLength = this.UploadStreamLength;
this.SetHeader("Transfer-Encoding", "Chunked");
Dictionary<string, List<string>> dictionary8 = this.<Headers>k__BackingField;
if (dictionary8 == 0 || !dictionary8.ContainsKey("Content-Type"))
{
this.SetHeader("Content-Type", "application/octet-stream");
goto IL_1FD;
}
IL_271:
Dictionary<string, List<string>> dictionary9 = this.<Headers>k__BackingField;
if (dictionary9 == 0 || !dictionary9.ContainsKey("Content-Length"))
{
}
Proxy proxy = this.<Proxy>k__BackingField;
if (proxy == 0)
{
goto IL_30A;
}
Credentials credentials = proxy.<Credentials>k__BackingField;
if (credentials == 0)
{
goto IL_30A;
}
AuthenticationTypes <Type>k__BackingField = credentials.<Type>k__BackingField;
if (<Type>k__BackingField != AuthenticationTypes.Unknown)
{
if (<Type>k__BackingField == AuthenticationTypes.Unknown)
{
goto IL_341;
}
if (<Type>k__BackingField != AuthenticationTypes.Basic)
{
goto IL_30A;
}
}
Digest digest = DigestStore.Get(proxy.<Address>k__BackingField);
if (digest == 0)
{
goto IL_30A;
}
Proxy proxy2 = this.<Proxy>k__BackingField;
int num2 = 0;
Credentials credentials2 = proxy2.<Credentials>k__BackingField;
string text = digest.GenerateResponseHeader(this, credentials2, num2 != 0);
if (text == 0)
{
this.SetHeader("Proxy-Authorization", text);
goto IL_30A;
}
goto IL_30A;
IL_406:
if ((this.<IsCookiesEnabled>k__BackingField ? 1 : 0) != num)
{
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
}
List<Cookie> list = CookieJar.Get(this.<Uri>k__BackingField);
}
if (num == 0)
{
goto IL_48F;
}
string text2;
if (this.customCookies != 0)
{
int num3 = 0;
HTTPRequest.<>c__DisplayClass239_0 CS$<>8__locals1;
int num4;
CS$<>8__locals1.FieldGetter(num3, text2, num4);
List<Cookie> list2 = this.customCookies;
int num5 = 0;
ThrowHelper.ThrowArgumentOutOfRangeException();
CS$<>8__locals1.customCookie = num5;
Predicate<Cookie> predicate = delegate(Cookie c)
{
Cookie customCookie3 = CS$<>8__locals1.customCookie;
string <Name>k__BackingField = c.<Name>k__BackingField;
string <Name>k__BackingField2 = customCookie3.<Name>k__BackingField;
return <Name>k__BackingField.Equals(<Name>k__BackingField2);
};
Cookie customCookie = CS$<>8__locals1.customCookie;
Cookie customCookie2 = CS$<>8__locals1.customCookie;
num++;
uint num6;
num6 += (uint)8;
List<Cookie> list3 = this.customCookies;
goto IL_48F;
}
IL_492:
if (num == 0)
{
goto IL_50C;
}
string empty = string.Empty;
if (this.<IsRedirected>k__BackingField)
{
}
bool flag = HTTPProtocolFactory.IsSecureProtocol(this.<Uri>k__BackingField);
List.Enumerator enumerator;
string text4;
if (enumerator != 0)
{
if (enumerator != 0)
{
while (flag == enumerator)
{
}
}
ulong num7;
if (num7 != (ulong)0L)
{
}
string text3 = empty + "; ";
text4 = text3 + text3;
DateTime utcNow = DateTime.UtcNow;
}
int num8;
if (num8 != -1)
{
if (!string.IsNullOrEmpty(text4))
{
this.SetHeader("Cookie", text4);
goto IL_50C;
}
goto IL_50C;
}
IL_523:
if (num8 != 0)
{
continue;
}
ILogger logger = HTTPManager.Logger;
IL_535:
if (text4 == 0 || this.<Headers>k__BackingField == 0)
{
break;
}
Dictionary.Enumerator enumerator2;
if (enumerator2 != 0)
{
}
num8++;
if (num8 != -1)
{
}
if (num8 == 0)
{
break;
}
continue;
IL_50C:
if (this._onBeforeHeaderSend != (ulong)0L)
{
this._onBeforeHeaderSend(this);
goto IL_523;
}
goto IL_535;
IL_48F:
num8 = 0;
goto IL_492;
IL_30A:
Credentials credentials3 = this.<Credentials>k__BackingField;
if (credentials3 == 0)
{
goto IL_406;
}
AuthenticationTypes <Type>k__BackingField2 = credentials3.<Type>k__BackingField;
if (<Type>k__BackingField2 != AuthenticationTypes.Unknown)
{
if (<Type>k__BackingField2 == AuthenticationTypes.Unknown)
{
goto IL_388;
}
if (<Type>k__BackingField2 != AuthenticationTypes.Basic)
{
goto IL_406;
}
}
if ((this.<IsRedirected>k__BackingField ? 1 : 0) != num)
{
goto IL_341;
}
IL_3C6:
Digest digest2 = DigestStore.Get(this.<Uri>k__BackingField);
if (digest2 == 0)
{
goto IL_406;
}
int num9 = 0;
Credentials credentials4 = this.<Credentials>k__BackingField;
text2 = digest2.GenerateResponseHeader(this, credentials4, num9 != 0);
if (text2 == 0)
{
int num4 = 0;
this.SetHeader("Authorization", text2);
goto IL_406;
}
goto IL_406;
IL_388:
Encoding utf = Encoding.UTF8;
Credentials credentials5 = this.<Credentials>k__BackingField;
string <Password>k__BackingField = credentials5.<Password>k__BackingField;
string text5 = credentials5.<UserName>k__BackingField + ":" + <Password>k__BackingField;
string text7;
string text6 = "Basic " + text7;
goto IL_3C6;
IL_341:
Encoding utf2 = Encoding.UTF8;
Credentials credentials6 = this.<Proxy>k__BackingField.<Credentials>k__BackingField;
string <UserName>k__BackingField = credentials6.<UserName>k__BackingField;
string <Password>k__BackingField2 = credentials6.<Password>k__BackingField;
string text8 = <UserName>k__BackingField + ":" + <Password>k__BackingField2;
string text10;
string text9 = "Basic " + text10;
goto IL_388;
IL_1FD:
if (this.<RawData>k__BackingField == 0)
{
if (this.FormImpl == num)
{
HTTPFormBase fieldCollector = this.FieldCollector;
if (fieldCollector == 0 || fieldCollector.<Fields>k__BackingField == 0)
{
goto IL_237;
}
}
HTTPFormBase httpformBase = this.SelectFormImplementation();
if (this.FormImpl != 0)
{
}
}
IL_237:
if (this.<RawData>k__BackingField != num)
{
goto IL_271;
}
if (this.FormImpl == num)
{
HTTPFormBase fieldCollector2 = this.FieldCollector;
if (fieldCollector2 == 0 || fieldCollector2.IsEmpty)
{
goto IL_271;
}
}
HTTPFormBase httpformBase2 = this.SelectFormImplementation();
if (this.FormImpl != 0)
{
goto IL_271;
}
goto IL_271;
}
}
// Token: 0x060077AC RID: 30636 RVA: 0x0018C3EC File Offset: 0x0018A5EC
[Token(Token = "0x60077AC")]
[Address(RVA = "0x1C95EC0", Offset = "0x1C948C0", VA = "0x181C95EC0")]
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: 0x060077AD RID: 30637 RVA: 0x0018C44C File Offset: 0x0018A64C
[Token(Token = "0x60077AD")]
[Address(RVA = "0x1C94900", Offset = "0x1C93300", VA = "0x181C94900")]
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)
{
}
if (num != -1)
{
}
}
while (num != 0);
throw new IndexOutOfRangeException();
}
// Token: 0x060077AE RID: 30638 RVA: 0x0018C4D8 File Offset: 0x0018A6D8
[Token(Token = "0x60077AE")]
[Address(RVA = "0x1C95980", Offset = "0x1C94380", VA = "0x181C95980")]
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: 0x060077AF RID: 30639 RVA: 0x0018C520 File Offset: 0x0018A720
[Token(Token = "0x60077AF")]
[Address(RVA = "0x1C96010", Offset = "0x1C94A10", VA = "0x181C96010")]
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)
{
byte[] array3;
VariableSizedBufferPool.Release(array3);
}
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[] eol3 = HTTPRequest.EOL;
int num8 = writeOnlyBufferedStream.ReadByte();
byte[] eol4 = HTTPRequest.EOL;
int num9 = writeOnlyBufferedStream.ReadByte();
byte[] array4;
VariableSizedBufferPool.Release(array4);
}
if (this.<UploadStream>k__BackingField != (ulong)0L)
{
}
memoryStream.Dispose();
if (writeOnlyBufferedStream != 0)
{
}
if (num != -1)
{
ILogger logger2 = HTTPManager.Logger;
num++;
}
if (num != 0)
{
goto IL_224;
}
Stream stream2 = this.<UploadStream>k__BackingField;
if (stream2 != 0 && this.<DisposeUploadStream>k__BackingField)
{
stream2.Dispose();
}
if (num != -1)
{
}
}
while (num != 0);
return;
IL_224:
throw new NullReferenceException();
}
// Token: 0x060077B0 RID: 30640 RVA: 0x0018C764 File Offset: 0x0018A964
[Token(Token = "0x60077B0")]
[Address(RVA = "0x1C96CE0", Offset = "0x1C956E0", VA = "0x181C96CE0")]
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: 0x060077B1 RID: 30641 RVA: 0x0018C7B0 File Offset: 0x0018A9B0
[Token(Token = "0x60077B1")]
[Address(RVA = "0x1C946B0", Offset = "0x1C930B0", VA = "0x181C946B0")]
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: 0x060077B2 RID: 30642 RVA: 0x0018C7E8 File Offset: 0x0018A9E8
[Token(Token = "0x60077B2")]
[Address(RVA = "0x1C94800", Offset = "0x1C93200", VA = "0x181C94800")]
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: 0x060077B3 RID: 30643 RVA: 0x0018C814 File Offset: 0x0018AA14
[Token(Token = "0x60077B3")]
[Address(RVA = "0x1C958D0", Offset = "0x1C942D0", VA = "0x181C958D0")]
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: 0x060077B4 RID: 30644 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x60077B4")]
[Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60")]
internal void Prepare()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x060077B5 RID: 30645 RVA: 0x0018C860 File Offset: 0x0018AA60
[Token(Token = "0x60077B5")]
[Address(RVA = "0x1C94780", Offset = "0x1C93180", VA = "0x181C94780")]
internal bool CallCustomCertificationValidator(X509Certificate cert, X509Chain chain)
{
Func<HTTPRequest, X509Certificate, X509Chain, bool> customCertificationValidator = this.CustomCertificationValidator;
return customCertificationValidator == 0 || customCertificationValidator(this, cert, chain) != null;
}
// Token: 0x060077B6 RID: 30646 RVA: 0x0018C884 File Offset: 0x0018AA84
[Token(Token = "0x60077B6")]
[Address(RVA = "0x1C96A30", Offset = "0x1C95430", VA = "0x181C96A30")]
public HTTPRequest Send()
{
return HTTPManager.SendRequest(this);
}
// Token: 0x060077B7 RID: 30647 RVA: 0x0018C898 File Offset: 0x0018AA98
[Token(Token = "0x60077B7")]
[Address(RVA = "0x1C93F60", Offset = "0x1C92960", VA = "0x181C93F60")]
public void Abort()
{
/*
An exception occurred when decompiling this method (060077B7)
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: 0x060077B8 RID: 30648 RVA: 0x0018C970 File Offset: 0x0018AB70
[Token(Token = "0x60077B8")]
[Address(RVA = "0x1C94860", Offset = "0x1C93260", VA = "0x181C94860")]
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: 0x060077B9 RID: 30649 RVA: 0x0018C9BC File Offset: 0x0018ABBC
[Token(Token = "0x60077B9")]
[Address(RVA = "0x1C96DC0", Offset = "0x1C957C0", VA = "0x181C96DC0")]
private void VerboseLogging(string str)
{
ILogger logger = HTTPManager.Logger;
if (this.<IsRedirected>k__BackingField)
{
}
int hashCode = this.<Uri>k__BackingField.GetHashCode();
}
// Token: 0x17001377 RID: 4983
// (get) Token: 0x060077BA RID: 30650 RVA: 0x0018C9EC File Offset: 0x0018ABEC
[Token(Token = "0x17001377")]
public object Current
{
[Token(Token = "0x60077BA")]
[Address(RVA = "0x3F8880", Offset = "0x3F7280", VA = "0x1803F8880", Slot = "5")]
get
{
}
}
// Token: 0x060077BB RID: 30651 RVA: 0x0018C9FC File Offset: 0x0018ABFC
[Token(Token = "0x60077BB")]
[Address(RVA = "0x1C95C50", Offset = "0x1C94650", VA = "0x181C95C50", Slot = "4")]
public bool MoveNext()
{
return this.<State>k__BackingField < HTTPRequestStates.Finished;
}
// Token: 0x060077BC RID: 30652 RVA: 0x0018CA14 File Offset: 0x0018AC14
[Token(Token = "0x60077BC")]
[Address(RVA = "0x1C95D10", Offset = "0x1C94710", VA = "0x181C95D10", Slot = "6")]
public void Reset()
{
/*
An exception occurred when decompiling this method (060077BC)
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: 0x17001378 RID: 4984
// (get) Token: 0x060077BD RID: 30653 RVA: 0x0018CA28 File Offset: 0x0018AC28
[Token(Token = "0x17001378")]
HTTPRequest IEnumerator<HTTPRequest>.Current
{
[Token(Token = "0x60077BD")]
[Address(RVA = "0x518E70", Offset = "0x517870", VA = "0x180518E70", Slot = "7")]
get
{
return this;
}
}
// Token: 0x060077BE RID: 30654 RVA: 0x0018CA38 File Offset: 0x0018AC38
[Token(Token = "0x60077BE")]
[Address(RVA = "0x1C948E0", Offset = "0x1C932E0", VA = "0x181C948E0", Slot = "8")]
public void Dispose()
{
HTTPResponse httpresponse = this.<Response>k__BackingField;
if (httpresponse != 0)
{
httpresponse.Dispose();
return;
}
}
// Token: 0x060077BF RID: 30655 RVA: 0x0018CA58 File Offset: 0x0018AC58
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x60077BF")]
[Address(RVA = "0x1C96EA0", Offset = "0x1C958A0", VA = "0x181C96EA0")]
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: 0x04005637 RID: 22071
[Token(Token = "0x4005637")]
public static readonly byte[] EOL;
// Token: 0x04005638 RID: 22072
[Token(Token = "0x4005638")]
public static readonly string[] MethodNames;
// Token: 0x04005639 RID: 22073
[Token(Token = "0x4005639")]
public static int UploadChunkSize;
// Token: 0x04005640 RID: 22080
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4005640")]
public OnUploadProgressDelegate OnUploadProgress;
// Token: 0x04005643 RID: 22083
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4005643")]
public OnDownloadProgressDelegate OnProgress;
// Token: 0x04005644 RID: 22084
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4005644")]
public OnRequestFinishedDelegate OnUpgraded;
// Token: 0x04005651 RID: 22097
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA8")]
[Token(Token = "0x4005651")]
private List<Cookie> customCookies;
// Token: 0x0400565F RID: 22111
[global::Cpp2IlInjected.FieldOffset(Offset = "0x100")]
[Token(Token = "0x400565F")]
private OnBeforeRedirectionDelegate onBeforeRedirection;
// Token: 0x04005660 RID: 22112
[global::Cpp2IlInjected.FieldOffset(Offset = "0x108")]
[Token(Token = "0x4005660")]
private OnBeforeHeaderSendDelegate _onBeforeHeaderSend;
// Token: 0x04005669 RID: 22121
[global::Cpp2IlInjected.FieldOffset(Offset = "0x149")]
[Token(Token = "0x4005669")]
private bool isKeepAlive;
// Token: 0x0400566A RID: 22122
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14A")]
[Token(Token = "0x400566A")]
private bool disableCache;
// Token: 0x0400566B RID: 22123
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14B")]
[Token(Token = "0x400566B")]
private bool cacheOnly;
// Token: 0x0400566C RID: 22124
[global::Cpp2IlInjected.FieldOffset(Offset = "0x14C")]
[Token(Token = "0x400566C")]
private int streamFragmentSize;
// Token: 0x0400566D RID: 22125
[global::Cpp2IlInjected.FieldOffset(Offset = "0x150")]
[Token(Token = "0x400566D")]
private bool useStreaming;
// Token: 0x0400566F RID: 22127
[global::Cpp2IlInjected.FieldOffset(Offset = "0x160")]
[Token(Token = "0x400566F")]
private HTTPFormBase FieldCollector;
// Token: 0x04005670 RID: 22128
[global::Cpp2IlInjected.FieldOffset(Offset = "0x168")]
[Token(Token = "0x4005670")]
private HTTPFormBase FormImpl;
}
}