forked from gitjayzhen/FiddlerUseScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTranscoderSnippets.cs
More file actions
48 lines (38 loc) · 1.46 KB
/
TranscoderSnippets.cs
File metadata and controls
48 lines (38 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Page 246
// Transcoders require methods introduced in v2.3.9.0...
[assembly: Fiddler.RequiredVersion("2.3.9.0")]
// Page 246
[ProfferFormat("HTTPArchive v1.1", "A lossy JSON-based HTTP traffic
archive format. Standard is documented @ http://groups.google.com/group/http-
archive-specification/web/har-1-1-spec")]
[ProfferFormat("HTTPArchive v1.2", "A lossy JSON-based HTTP traffic
archive format. Standard is documented @ http://groups.google.com/group/http-
archive-specification/web/har-1-2-spec")]
public class HTTPArchiveFormatExport: ISessionExporter
{
///...
// Page 248
public bool ExportSessions(string sFormat, Session[] oSessions,
Dictionary<string, object> dictOptions,
EventHandler<ProgressCallbackEventArgs> evtProgressNotifications)
{
//...
string sFilename = null;
int iMaxTextBodyLength = DEFAULT_MAX_TEXT_BYTECOUNT;
int iMaxBinaryBodyLength = DEFAULT_MAX_BINARY_BYTECOUNT;
if (null != dictOptions)
{
if (dictOptions.ContainsKey("Filename"))
{
sFilename = dictOptions["Filename"] as string;
}
if (dictOptions.ContainsKey("MaxTextBodyLength"))
{
iMaxTextBodyLength = (int)dictOptions["MaxTextBodyLength"];
}
if (dictOptions.ContainsKey("MaxBinaryBodyLength"))
{
iMaxBinaryBodyLength = (int)dictOptions["MaxBinaryBodyLength"];
}
}
//...