This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,127 @@
using System;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.Forms
{
// Token: 0x02001F7F RID: 8063
[Token(Token = "0x2001F7F")]
public class HTTPFieldData
{
// Token: 0x17002073 RID: 8307
// (get) Token: 0x0600CC2A RID: 52266 RVA: 0x002EC390 File Offset: 0x002EA590
// (set) Token: 0x0600CC2B RID: 52267 RVA: 0x002EC3A4 File Offset: 0x002EA5A4
[Token(Token = "0x17002073")]
public string Name
{
[Token(Token = "0x600CC2A")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get;
[Token(Token = "0x600CC2B")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set;
}
// Token: 0x17002074 RID: 8308
// (get) Token: 0x0600CC2C RID: 52268 RVA: 0x002EC3B8 File Offset: 0x002EA5B8
// (set) Token: 0x0600CC2D RID: 52269 RVA: 0x002EC3CC File Offset: 0x002EA5CC
[Token(Token = "0x17002074")]
public string FileName
{
[Token(Token = "0x600CC2C")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get;
[Token(Token = "0x600CC2D")]
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
set;
}
// Token: 0x17002075 RID: 8309
// (get) Token: 0x0600CC2E RID: 52270 RVA: 0x002EC3E0 File Offset: 0x002EA5E0
// (set) Token: 0x0600CC2F RID: 52271 RVA: 0x002EC3F4 File Offset: 0x002EA5F4
[Token(Token = "0x17002075")]
public string MimeType
{
[Token(Token = "0x600CC2E")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get;
[Token(Token = "0x600CC2F")]
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
set;
}
// Token: 0x17002076 RID: 8310
// (get) Token: 0x0600CC30 RID: 52272 RVA: 0x002EC408 File Offset: 0x002EA608
// (set) Token: 0x0600CC31 RID: 52273 RVA: 0x002EC41C File Offset: 0x002EA61C
[Token(Token = "0x17002076")]
public Encoding Encoding
{
[Token(Token = "0x600CC30")]
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
get;
[Token(Token = "0x600CC31")]
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
set;
}
// Token: 0x17002077 RID: 8311
// (get) Token: 0x0600CC32 RID: 52274 RVA: 0x002EC430 File Offset: 0x002EA630
// (set) Token: 0x0600CC33 RID: 52275 RVA: 0x002EC444 File Offset: 0x002EA644
[Token(Token = "0x17002077")]
public string Text
{
[Token(Token = "0x600CC32")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
get;
[Token(Token = "0x600CC33")]
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
set;
}
// Token: 0x17002078 RID: 8312
// (get) Token: 0x0600CC34 RID: 52276 RVA: 0x002EC458 File Offset: 0x002EA658
// (set) Token: 0x0600CC35 RID: 52277 RVA: 0x002EC46C File Offset: 0x002EA66C
[Token(Token = "0x17002078")]
public byte[] Binary
{
[Token(Token = "0x600CC34")]
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
get;
[Token(Token = "0x600CC35")]
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
set;
}
// Token: 0x17002079 RID: 8313
// (get) Token: 0x0600CC36 RID: 52278 RVA: 0x002EC480 File Offset: 0x002EA680
[Token(Token = "0x17002079")]
public byte[] Payload
{
[Token(Token = "0x600CC36")]
[Address(RVA = "0x1717FF0", Offset = "0x1716DF0", VA = "0x181717FF0")]
get
{
byte[] array = this.<Binary>k__BackingField;
if (array == 0)
{
if (this.<Encoding>k__BackingField == 0)
{
Encoding utf = Encoding.UTF8;
this.<Encoding>k__BackingField = utf;
}
string text = this.<Text>k__BackingField;
int num;
this.<Binary>k__BackingField = num;
}
return array;
}
}
// Token: 0x0600CC37 RID: 52279 RVA: 0x002EC4C4 File Offset: 0x002EA6C4
[Token(Token = "0x600CC37")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public HTTPFieldData()
{
}
}
}
@@ -0,0 +1,240 @@
using System;
using System.Collections.Generic;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.Forms
{
// Token: 0x02001F80 RID: 8064
[Token(Token = "0x2001F80")]
public class HTTPFormBase
{
// Token: 0x1700207A RID: 8314
// (get) Token: 0x0600CC38 RID: 52280 RVA: 0x002EC4D8 File Offset: 0x002EA6D8
// (set) Token: 0x0600CC39 RID: 52281 RVA: 0x002EC4EC File Offset: 0x002EA6EC
[Token(Token = "0x1700207A")]
public List<HTTPFieldData> Fields
{
[Token(Token = "0x600CC38")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get;
[Token(Token = "0x600CC39")]
[Address(RVA = "0x3F7200", Offset = "0x3F6000", VA = "0x1803F7200")]
set;
}
// Token: 0x1700207B RID: 8315
// (get) Token: 0x0600CC3A RID: 52282 RVA: 0x002EC500 File Offset: 0x002EA700
[Token(Token = "0x1700207B")]
public bool IsEmpty
{
[Token(Token = "0x600CC3A")]
[Address(RVA = "0x1718440", Offset = "0x1717240", VA = "0x181718440")]
get
{
bool flag;
return this.<Fields>k__BackingField == 0 || flag;
}
}
// Token: 0x1700207C RID: 8316
// (get) Token: 0x0600CC3B RID: 52283 RVA: 0x002EC51C File Offset: 0x002EA71C
// (set) Token: 0x0600CC3C RID: 52284 RVA: 0x002EC530 File Offset: 0x002EA730
[Token(Token = "0x1700207C")]
public bool IsChanged
{
[Token(Token = "0x600CC3B")]
[Address(RVA = "0x42C2C0", Offset = "0x42B0C0", VA = "0x18042C2C0")]
get;
[Token(Token = "0x600CC3C")]
[Address(RVA = "0x43DE90", Offset = "0x43CC90", VA = "0x18043DE90")]
protected set;
}
// Token: 0x1700207D RID: 8317
// (get) Token: 0x0600CC3D RID: 52285 RVA: 0x002EC544 File Offset: 0x002EA744
// (set) Token: 0x0600CC3E RID: 52286 RVA: 0x002EC558 File Offset: 0x002EA758
[Token(Token = "0x1700207D")]
public bool HasBinary
{
[Token(Token = "0x600CC3D")]
[Address(RVA = "0x50FC80", Offset = "0x50EA80", VA = "0x18050FC80")]
get;
[Token(Token = "0x600CC3E")]
[Address(RVA = "0x745E50", Offset = "0x744C50", VA = "0x180745E50")]
protected set;
}
// Token: 0x1700207E RID: 8318
// (get) Token: 0x0600CC3F RID: 52287 RVA: 0x002EC56C File Offset: 0x002EA76C
// (set) Token: 0x0600CC40 RID: 52288 RVA: 0x002EC580 File Offset: 0x002EA780
[Token(Token = "0x1700207E")]
public bool HasLongValue
{
[Token(Token = "0x600CC3F")]
[Address(RVA = "0x761D60", Offset = "0x760B60", VA = "0x180761D60")]
get;
[Token(Token = "0x600CC40")]
[Address(RVA = "0x745E60", Offset = "0x744C60", VA = "0x180745E60")]
protected set;
}
// Token: 0x0600CC41 RID: 52289 RVA: 0x002EC594 File Offset: 0x002EA794
[Token(Token = "0x600CC41")]
[Address(RVA = "0x1718040", Offset = "0x1716E40", VA = "0x181718040")]
public void AddBinaryData(string fieldName, byte[] content)
{
int num = 0;
int num2 = 0;
this.AddBinaryData(fieldName, content, num2, num);
}
// Token: 0x0600CC42 RID: 52290 RVA: 0x002EC5B0 File Offset: 0x002EA7B0
[Token(Token = "0x600CC42")]
[Address(RVA = "0x1718060", Offset = "0x1716E60", VA = "0x181718060")]
public void AddBinaryData(string fieldName, byte[] content, string fileName)
{
int num = 0;
this.AddBinaryData(fieldName, content, fileName, num);
}
// Token: 0x0600CC43 RID: 52291 RVA: 0x002EC5CC File Offset: 0x002EA7CC
[Token(Token = "0x600CC43")]
[Address(RVA = "0x1718080", Offset = "0x1716E80", VA = "0x181718080")]
public void AddBinaryData(string fieldName, byte[] content, string fileName, string mimeType)
{
if (this.<Fields>k__BackingField == (ulong)0L)
{
List<HTTPFieldData> list = new List();
this.<Fields>k__BackingField = list;
}
HTTPFieldData httpfieldData = new HTTPFieldData();
httpfieldData.<Name>k__BackingField = fieldName;
string text;
if (fileName == 0)
{
text = fieldName + ".dat";
}
httpfieldData.<FileName>k__BackingField = text;
httpfieldData.<MimeType>k__BackingField = 0;
httpfieldData.<Binary>k__BackingField = content;
this.<Fields>k__BackingField.Add(httpfieldData);
this.<IsChanged>k__BackingField = true;
}
// Token: 0x0600CC44 RID: 52292 RVA: 0x002EC63C File Offset: 0x002EA83C
[Token(Token = "0x600CC44")]
[Address(RVA = "0x17182C0", Offset = "0x17170C0", VA = "0x1817182C0")]
public void AddField(string fieldName, string value)
{
Encoding utf = Encoding.UTF8;
this.AddField(fieldName, value, utf);
}
// Token: 0x0600CC45 RID: 52293 RVA: 0x002EC65C File Offset: 0x002EA85C
[Token(Token = "0x600CC45")]
[Address(RVA = "0x1718190", Offset = "0x1716F90", VA = "0x181718190")]
public void AddField(string fieldName, string value, Encoding e)
{
if (this.<Fields>k__BackingField == (ulong)0L)
{
List<HTTPFieldData> list = new List();
this.<Fields>k__BackingField = list;
}
int num = 0;
HTTPFieldData httpfieldData;
httpfieldData.FieldGetter(num, value, e);
httpfieldData.<Name>k__BackingField = fieldName;
int num2 = 0;
httpfieldData.<FileName>k__BackingField = num2;
if (e != 0)
{
string headerName = e.HeaderName;
string text = "text/plain; charset=" + headerName;
httpfieldData.<MimeType>k__BackingField = text;
}
httpfieldData.<Text>k__BackingField = value;
httpfieldData.<Encoding>k__BackingField = e;
this.<Fields>k__BackingField.Add(httpfieldData);
this.<IsChanged>k__BackingField = true;
bool flag = value.m_stringLength != 256;
this.<HasLongValue>k__BackingField = flag;
}
// Token: 0x0600CC46 RID: 52294 RVA: 0x002EC700 File Offset: 0x002EA900
[Token(Token = "0x600CC46")]
[Address(RVA = "0x1718310", Offset = "0x1717110", VA = "0x181718310", Slot = "4")]
public virtual void CopyFrom(HTTPFormBase fields)
{
List<HTTPFieldData> list = new List(fields.<Fields>k__BackingField);
this.<Fields>k__BackingField = list;
bool flag = fields.<HasBinary>k__BackingField;
this.<HasBinary>k__BackingField = flag;
bool flag2 = fields.<HasLongValue>k__BackingField;
this.<HasLongValue>k__BackingField = flag2;
}
// Token: 0x0600CC47 RID: 52295 RVA: 0x002EC744 File Offset: 0x002EA944
[Token(Token = "0x600CC47")]
[Address(RVA = "0x17183F0", Offset = "0x17171F0", VA = "0x1817183F0", Slot = "5")]
public virtual void PrepareRequest(HTTPRequest request)
{
/*
An exception occurred when decompiling this method (0600CC47)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.Forms.HTTPFormBase::PrepareRequest(BestHTTP.HTTPRequest)
---> 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 1660
*/;
}
// Token: 0x0600CC48 RID: 52296 RVA: 0x002EC758 File Offset: 0x002EA958
[Token(Token = "0x600CC48")]
[Address(RVA = "0x17183A0", Offset = "0x17171A0", VA = "0x1817183A0", Slot = "6")]
public virtual byte[] GetData()
{
/*
An exception occurred when decompiling this method (0600CC48)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Byte[] BestHTTP.Forms.HTTPFormBase::GetData()
---> 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 1660
*/;
}
// Token: 0x0600CC49 RID: 52297 RVA: 0x002EC76C File Offset: 0x002EA96C
[Token(Token = "0x600CC49")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public HTTPFormBase()
{
}
// Token: 0x04008230 RID: 33328
[Token(Token = "0x4008230")]
private const int LongLength = 256;
}
}
@@ -0,0 +1,23 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Forms
{
// Token: 0x02001F81 RID: 8065
[Token(Token = "0x2001F81")]
public enum HTTPFormUsage
{
// Token: 0x04008236 RID: 33334
[Token(Token = "0x4008236")]
Automatic,
// Token: 0x04008237 RID: 33335
[Token(Token = "0x4008237")]
UrlEncoded,
// Token: 0x04008238 RID: 33336
[Token(Token = "0x4008238")]
Multipart,
// Token: 0x04008239 RID: 33337
[Token(Token = "0x4008239")]
RawJSon
}
}
@@ -0,0 +1,49 @@
using System;
using Cpp2IlInjected;
namespace BestHTTP.Forms
{
// Token: 0x02001F82 RID: 8066
[Token(Token = "0x2001F82")]
public sealed class HTTPMultiPartForm : HTTPFormBase
{
// Token: 0x0600CC4A RID: 52298 RVA: 0x002EC780 File Offset: 0x002EA980
[Token(Token = "0x600CC4A")]
[Address(RVA = "0x171D330", Offset = "0x171C130", VA = "0x18171D330")]
public HTTPMultiPartForm()
{
this.Finalize();
string text2;
string text = "BestHTTP_HTTPMultiPartForm_" + text2;
this.Boundary = text;
}
// Token: 0x0600CC4B RID: 52299 RVA: 0x002EC7AC File Offset: 0x002EA9AC
[Token(Token = "0x600CC4B")]
[Address(RVA = "0x171D2C0", Offset = "0x171C0C0", VA = "0x18171D2C0", Slot = "5")]
public override void PrepareRequest(HTTPRequest request)
{
string boundary = this.Boundary;
string text = "multipart/form-data; boundary=\"" + boundary + "\"";
request.SetHeader("Content-Type", text);
}
// Token: 0x0600CC4C RID: 52300 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600CC4C")]
[Address(RVA = "0x171CEB0", Offset = "0x171BCB0", VA = "0x18171CEB0", Slot = "6")]
public override byte[] GetData()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0400823A RID: 33338
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400823A")]
private string Boundary;
// Token: 0x0400823B RID: 33339
[FieldOffset(Offset = "0x28")]
[Token(Token = "0x400823B")]
private byte[] CachedData;
}
}
@@ -0,0 +1,62 @@
using System;
using System.Text;
using Cpp2IlInjected;
namespace BestHTTP.Forms
{
// Token: 0x02001F83 RID: 8067
[Token(Token = "0x2001F83")]
public sealed class HTTPUrlEncodedForm : HTTPFormBase
{
// Token: 0x0600CC4D RID: 52301 RVA: 0x002EC7E4 File Offset: 0x002EA9E4
[Token(Token = "0x600CC4D")]
[Address(RVA = "0x1727F30", Offset = "0x1726D30", VA = "0x181727F30", Slot = "5")]
public override void PrepareRequest(HTTPRequest request)
{
request.SetHeader("Content-Type", "application/x-www-form-urlencoded");
}
// Token: 0x0600CC4E RID: 52302 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600CC4E")]
[Address(RVA = "0x1727D30", Offset = "0x1726B30", VA = "0x181727D30", Slot = "6")]
public override byte[] GetData()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600CC4F RID: 52303 RVA: 0x002EC808 File Offset: 0x002EAA08
[Token(Token = "0x600CC4F")]
[Address(RVA = "0x1727BD0", Offset = "0x17269D0", VA = "0x181727BD0")]
public static string EscapeString(string originalString)
{
int stringLength = originalString.m_stringLength;
int num = 0;
uint num2;
string text = originalString.Substring(num, (int)num2);
string text2 = Uri.EscapeDataString(originalString.Substring(num));
StringBuilder stringBuilder2;
StringBuilder stringBuilder = stringBuilder2.Append(text2);
num++;
num += 256;
int hashCode = stringBuilder2.GetHashCode();
string text3 = Uri.EscapeDataString(originalString);
throw new NullReferenceException();
}
// Token: 0x0600CC50 RID: 52304 RVA: 0x002EC864 File Offset: 0x002EAA64
[Token(Token = "0x600CC50")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public HTTPUrlEncodedForm()
{
}
// Token: 0x0400823C RID: 33340
[Token(Token = "0x400823C")]
private const int EscapeTreshold = 256;
// Token: 0x0400823D RID: 33341
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400823D")]
private byte[] CachedData;
}
}
@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestHTTP.JSON;
using Cpp2IlInjected;
namespace BestHTTP.Forms
{
// Token: 0x02001F84 RID: 8068
[Token(Token = "0x2001F84")]
public sealed class RawJsonForm : HTTPFormBase
{
// Token: 0x0600CC51 RID: 52305 RVA: 0x002EC878 File Offset: 0x002EAA78
[Token(Token = "0x600CC51")]
[Address(RVA = "0x1728DF0", Offset = "0x1727BF0", VA = "0x181728DF0", Slot = "5")]
public override void PrepareRequest(HTTPRequest request)
{
request.SetHeader("Content-Type", "application/json");
}
// Token: 0x0600CC52 RID: 52306 RVA: 0x002EC89C File Offset: 0x002EAA9C
[Token(Token = "0x600CC52")]
[Address(RVA = "0x1728C00", Offset = "0x1727A00", VA = "0x181728C00", Slot = "6")]
public override byte[] GetData()
{
byte[] cachedData = this.CachedData;
if (cachedData != 0)
{
}
List<HTTPFieldData> <Fields>k__BackingField = this.<Fields>k__BackingField;
Func<HTTPFieldData, string> <>9__2_ = RawJsonForm.<>c.<>9__2_0;
if (<>9__2_ == 0)
{
RawJsonForm.<>c.<>9__2_0 = (HTTPFieldData x) => x.<Name>k__BackingField;
}
Func<HTTPFieldData, string> func;
if (RawJsonForm.<>c.<>9__2_1 == 0)
{
func = (HTTPFieldData x) => x.<Text>k__BackingField;
RawJsonForm.<>c.<>9__2_1 = func;
}
string text = Json.Encode(Enumerable.ToDictionary<HTTPFieldData, string, string>(<Fields>k__BackingField, <>9__2_, func));
this.<IsChanged>k__BackingField = false;
Encoding utf = Encoding.UTF8;
int num;
this.CachedData = num;
return cachedData;
}
// Token: 0x0600CC53 RID: 52307 RVA: 0x002EC928 File Offset: 0x002EAB28
[Token(Token = "0x600CC53")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public RawJsonForm()
{
}
// Token: 0x0400823E RID: 33342
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x400823E")]
private byte[] CachedData;
}
}
@@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using Cpp2IlInjected;
using UnityEngine;
namespace BestHTTP.Forms
{
// Token: 0x02001F86 RID: 8070
[Token(Token = "0x2001F86")]
public sealed class UnityForm : HTTPFormBase
{
// Token: 0x1700207F RID: 8319
// (get) Token: 0x0600CC58 RID: 52312 RVA: 0x002EC9A0 File Offset: 0x002EABA0
// (set) Token: 0x0600CC59 RID: 52313 RVA: 0x002EC9B4 File Offset: 0x002EABB4
[Token(Token = "0x1700207F")]
public WWWForm Form
{
[Token(Token = "0x600CC58")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get;
[Token(Token = "0x600CC59")]
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
set;
}
// Token: 0x0600CC5A RID: 52314 RVA: 0x002EC9C8 File Offset: 0x002EABC8
[Token(Token = "0x600CC5A")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public UnityForm()
{
}
// Token: 0x0600CC5B RID: 52315 RVA: 0x002EC9DC File Offset: 0x002EABDC
[Token(Token = "0x600CC5B")]
[Address(RVA = "0x4A24B0", Offset = "0x4A12B0", VA = "0x1804A24B0")]
public UnityForm(WWWForm form)
{
this.Form = form;
}
// Token: 0x0600CC5C RID: 52316 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x600CC5C")]
[Address(RVA = "0x1729C40", Offset = "0x1728A40", VA = "0x181729C40", Slot = "4")]
public override void CopyFrom(HTTPFormBase fields)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x0600CC5D RID: 52317 RVA: 0x002EC9F8 File Offset: 0x002EABF8
[Token(Token = "0x600CC5D")]
[Address(RVA = "0x1729DC0", Offset = "0x1728BC0", VA = "0x181729DC0", Slot = "5")]
public override void PrepareRequest(HTTPRequest request)
{
Dictionary<string, string> headers = this.<Form>k__BackingField.headers;
throw new NullReferenceException();
}
// Token: 0x0600CC5E RID: 52318 RVA: 0x002ECA48 File Offset: 0x002EAC48
[Token(Token = "0x600CC5E")]
[Address(RVA = "0x1729DA0", Offset = "0x1728BA0", VA = "0x181729DA0", Slot = "6")]
public override byte[] GetData()
{
return this.<Form>k__BackingField.data;
}
}
}