-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequester_v3.html
More file actions
1593 lines (1476 loc) · 71.9 KB
/
requester_v3.html
File metadata and controls
1593 lines (1476 loc) · 71.9 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<title>Requester v3.0</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');
:root {
--bg-primary: #0a0e14;
--bg-secondary: #111820;
--bg-tertiary: #1a2230;
--bg-input: #0d1219;
--border: #1e2a3a;
--border-focus: #3d8ef0;
--text-primary: #e0e6ed;
--text-secondary: #8899aa;
--text-muted: #556677;
--accent-blue: #3d8ef0;
--accent-green: #27c93f;
--accent-red: #ff5f57;
--accent-yellow: #fdbc40;
--accent-orange: #ff9f43;
--accent-purple: #b07aff;
--accent-cyan: #41e7d6;
--intercept-color: #ff9f43;
--method-get: #27c93f;
--method-post: #3d8ef0;
--method-put: #fdbc40;
--method-delete: #ff5f57;
--method-patch: #b07aff;
--radius: 6px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.5;
}
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }
/* ── Header ── */
.app-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
cursor: move; user-select: none;
}
.app-header-left { display: flex; align-items: center; gap: 10px; pointer-events: none; }
.logo {
width: 28px; height: 28px;
background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
border-radius: 6px; display: flex; align-items: center; justify-content: center;
font-size: 13px; font-weight: 700; color: #fff; font-family: 'JetBrains Mono', monospace;
}
.app-header h1 { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.app-header-badge {
font-size: 9px; background: var(--bg-tertiary); color: var(--text-secondary);
padding: 2px 7px; border-radius: 8px; font-family: 'JetBrains Mono', monospace;
}
.header-right { display: flex; align-items: center; gap: 6px; pointer-events: all; }
.btn-close-overlay {
display: none; background: var(--bg-tertiary); border: 1px solid var(--border);
color: var(--text-secondary); width: 24px; height: 24px; border-radius: 5px;
cursor: pointer; font-size: 13px; transition: all 0.15s;
align-items: center; justify-content: center;
}
.btn-close-overlay:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); }
/* ── Intercept Indicator ── */
.intercept-indicator {
font-size: 10px; font-family: 'JetBrains Mono', monospace;
padding: 3px 8px; border-radius: 4px; font-weight: 600;
background: rgba(255,159,67,0.1); color: var(--accent-orange);
border: 1px solid rgba(255,159,67,0.3);
display: none;
}
.intercept-indicator.active { display: block; animation: pulse-orange 1.5s infinite; }
@keyframes pulse-orange {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* ── Main Tabs ── */
.main-tabs { display: flex; gap: 0; margin-bottom: 14px; border-bottom: 2px solid var(--border); }
.main-tab {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 12px; font-weight: 600; color: var(--text-muted);
background: none; border: none; padding: 9px 18px; cursor: pointer;
border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s;
display: flex; align-items: center; gap: 7px;
}
.main-tab:hover { color: var(--text-secondary); }
.main-tab.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.badge-count {
font-size: 10px; font-family: 'JetBrains Mono', monospace;
background: var(--bg-tertiary); color: var(--text-muted);
padding: 1px 6px; border-radius: 8px; font-weight: 500;
}
.main-tab.active .badge-count { background: rgba(61,142,240,0.15); color: var(--accent-blue); }
.main-panel { display: none; }
.main-panel.active { display: block; }
/* ── Request Bar ── */
.request-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.method-select {
font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
background: var(--bg-tertiary); color: var(--method-get);
border: 1px solid var(--border); border-radius: var(--radius);
padding: 7px 10px; cursor: pointer; outline: none; min-width: 90px;
appearance: none; -webkit-appearance: none;
}
.method-select:focus { border-color: var(--border-focus); }
.method-select option { background: var(--bg-secondary); }
.url-input {
flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 12px;
background: var(--bg-input); color: var(--text-primary);
border: 1px solid var(--border); border-radius: var(--radius);
padding: 7px 10px; outline: none; transition: border-color 0.15s;
}
.url-input:focus { border-color: var(--border-focus); }
.url-input::placeholder { color: var(--text-muted); }
.btn-send {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 12px; font-weight: 600; background: var(--accent-blue); color: #fff;
border: none; border-radius: var(--radius); padding: 7px 18px; cursor: pointer;
transition: all 0.15s; white-space: nowrap;
}
.btn-send:hover { background: #5aa0f5; }
.btn-send:active { transform: scale(0.97); }
.btn-send.loading { opacity: 0.6; pointer-events: none; }
.btn-intercept-toggle {
font-family: 'JetBrains Mono', monospace;
font-size: 11px; font-weight: 600;
background: var(--bg-tertiary); color: var(--text-muted);
border: 1px solid var(--border); border-radius: var(--radius);
padding: 7px 10px; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-intercept-toggle:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-intercept-toggle.active {
background: rgba(255,159,67,0.1); color: var(--accent-orange);
border-color: var(--accent-orange);
}
/* ── Sub Tabs ── */
.sub-tabs { display: flex; gap: 0; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.sub-tab {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 11px; font-weight: 500; color: var(--text-muted);
background: none; border: none; padding: 6px 12px; cursor: pointer;
border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s;
}
.sub-tab:hover { color: var(--text-secondary); }
.sub-tab.active { color: var(--accent-blue); border-bottom-color: var(--accent-blue); }
.sub-panel { display: none; }
.sub-panel.active { display: block; }
/* ── Headers Editor ── */
.header-row { display: flex; gap: 5px; margin-bottom: 4px; align-items: center; }
.header-row input {
font-family: 'JetBrains Mono', monospace; font-size: 11px;
background: var(--bg-input); color: var(--text-primary);
border: 1px solid var(--border); border-radius: 4px;
padding: 4px 7px; outline: none; transition: border-color 0.15s;
}
.header-row input:focus { border-color: var(--border-focus); }
.header-row input::placeholder { color: var(--text-muted); }
.hdr-key { flex: 2; }
.hdr-val { flex: 3; }
.btn-icon {
width: 24px; height: 24px; border: 1px solid var(--border);
background: var(--bg-tertiary); color: var(--text-muted);
border-radius: 4px; cursor: pointer; font-size: 12px;
display: flex; align-items: center; justify-content: center;
transition: all 0.15s; flex-shrink: 0;
}
.btn-icon:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.btn-icon.remove:hover { border-color: var(--accent-red); color: var(--accent-red); }
.btn-add-hdr {
font-size: 11px; color: var(--accent-blue); background: none;
border: 1px dashed var(--border); border-radius: 4px;
padding: 4px 9px; cursor: pointer; margin-top: 4px; transition: all 0.15s;
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
}
.btn-add-hdr:hover { border-color: var(--accent-blue); background: rgba(61,142,240,0.05); }
/* ── Body ── */
.body-type-bar { display: flex; gap: 8px; margin-bottom: 7px; align-items: center; }
.body-type-sel {
font-family: 'JetBrains Mono', monospace; font-size: 11px;
background: var(--bg-tertiary); color: var(--text-secondary);
border: 1px solid var(--border); border-radius: 4px;
padding: 4px 7px; cursor: pointer; outline: none;
}
.body-ta {
width: 100%; min-height: 90px;
font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.6;
background: var(--bg-input); color: var(--text-primary);
border: 1px solid var(--border); border-radius: var(--radius);
padding: 8px; outline: none; resize: vertical; transition: border-color 0.15s;
}
.body-ta:focus { border-color: var(--border-focus); }
.body-ta::placeholder { color: var(--text-muted); }
/* ── Response ── */
.resp-section { margin-top: 14px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.resp-bar {
display: flex; align-items: center; justify-content: space-between;
padding: 7px 12px; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
font-family: 'JetBrains Mono', monospace; font-size: 11px;
}
.status-badge { padding: 2px 7px; border-radius: 4px; font-weight: 600; font-size: 11px; }
.status-2xx { background: rgba(39,201,63,0.15); color: var(--accent-green); }
.status-3xx { background: rgba(253,188,64,0.15); color: var(--accent-yellow); }
.status-4xx { background: rgba(255,159,67,0.15); color: var(--accent-orange); }
.status-5xx { background: rgba(255,95,87,0.15); color: var(--accent-red); }
.status-err { background: rgba(255,95,87,0.15); color: var(--accent-red); }
.resp-meta { color: var(--text-muted); font-size: 10px; display: flex; gap: 10px; }
.resp-content-box {
max-height: 300px; overflow-y: scroll;
background: var(--bg-primary);
}
.resp-content-box pre, .resp-content-box div {
padding: 8px 12px; font-family: 'JetBrains Mono', monospace;
font-size: 11px; line-height: 1.6; white-space: pre-wrap;
word-break: break-all; color: var(--text-primary); margin: 0;
}
.rh-name { color: var(--accent-blue); }
.rh-val { color: var(--text-primary); }
.placeholder-msg { padding: 28px; text-align: center; color: var(--text-muted); font-size: 12px; }
/* ══ Intercept Modal ══ */
.intercept-overlay {
display: none;
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.7); z-index: 99999;
align-items: center; justify-content: center;
}
.intercept-overlay.active { display: flex; }
.intercept-modal {
background: var(--bg-secondary);
border: 1px solid var(--accent-orange);
border-radius: 10px; width: 620px; max-width: 95vw;
max-height: 85vh; display: flex; flex-direction: column;
box-shadow: 0 12px 60px rgba(0,0,0,0.8);
}
.intercept-modal-header {
display: flex; align-items: center; justify-content: space-between;
padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.intercept-modal-title {
font-size: 13px; font-weight: 700; color: var(--accent-orange);
font-family: 'JetBrains Mono', monospace;
display: flex; align-items: center; gap: 8px;
}
.intercept-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-orange); animation: pulse-orange 1s infinite; }
.intercept-modal-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.intercept-label {
font-size: 10px; font-weight: 600; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
font-family: 'JetBrains Mono', monospace;
}
.intercept-raw-ta {
width: 100%; min-height: 200px;
font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.7;
background: var(--bg-input); color: var(--text-primary);
border: 1px solid var(--border); border-radius: var(--radius);
padding: 10px; outline: none; resize: vertical; transition: border-color 0.15s;
}
.intercept-raw-ta:focus { border-color: var(--accent-orange); }
.intercept-info {
font-size: 10px; color: var(--text-muted); margin-top: 6px; margin-bottom: 12px;
font-family: 'JetBrains Mono', monospace;
}
.intercept-modal-footer {
display: flex; gap: 8px; padding: 12px 16px;
border-top: 1px solid var(--border); justify-content: flex-end;
}
.btn-forward {
font-size: 12px; font-weight: 600; background: var(--accent-green); color: #fff;
border: none; border-radius: var(--radius); padding: 7px 18px; cursor: pointer; transition: all 0.15s;
}
.btn-forward:hover { background: #34d64b; }
.btn-drop {
font-size: 12px; font-weight: 600; background: var(--bg-tertiary); color: var(--accent-red);
border: 1px solid var(--accent-red); border-radius: var(--radius); padding: 7px 14px; cursor: pointer; transition: all 0.15s;
}
.btn-drop:hover { background: rgba(255,95,87,0.1); }
.btn-edit-forward {
font-size: 12px; font-weight: 600; background: rgba(255,159,67,0.1); color: var(--accent-orange);
border: 1px solid var(--accent-orange); border-radius: var(--radius); padding: 7px 14px; cursor: pointer; transition: all 0.15s;
}
.btn-edit-forward:hover { background: rgba(255,159,67,0.2); }
/* ══ HTTP History ══ */
.http-history-wrap { display: flex; flex-direction: column; gap: 0; }
.hh-filter-bar { display: flex; gap: 7px; margin-bottom: 8px; align-items: center; }
.hh-filter-input {
flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 11px;
background: var(--bg-input); color: var(--text-primary);
border: 1px solid var(--border); border-radius: 4px;
padding: 5px 9px; outline: none; transition: border-color 0.15s;
}
.hh-filter-input:focus { border-color: var(--border-focus); }
.hh-filter-input::placeholder { color: var(--text-muted); }
.hh-controls { display: flex; gap: 5px; align-items: center; }
.hh-toggle {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 11px; font-weight: 500; padding: 4px 9px;
border-radius: 4px; cursor: pointer; border: 1px solid var(--border);
transition: all 0.15s; background: var(--bg-tertiary); color: var(--text-muted);
}
.hh-toggle.active { background: rgba(61,142,240,0.12); color: var(--accent-blue); border-color: var(--accent-blue); }
.hh-toggle:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.hh-btn {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 11px; color: var(--text-muted); background: none;
border: 1px solid var(--border); border-radius: 4px;
padding: 4px 9px; cursor: pointer; transition: all 0.15s;
}
.hh-btn:hover { color: var(--accent-blue); border-color: var(--accent-blue); }
.hh-btn.danger:hover { color: var(--accent-red); border-color: var(--accent-red); }
/* ── History Table ── */
.hh-table-wrap { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.hh-table {
width: 100%; border-collapse: collapse; font-size: 11px;
font-family: 'JetBrains Mono', monospace; table-layout: fixed;
}
.hh-table thead { background: var(--bg-secondary); }
.hh-table th {
padding: 6px 9px; text-align: left; font-weight: 600;
color: var(--text-muted); font-size: 10px; text-transform: uppercase;
letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
white-space: nowrap; user-select: none;
}
.hh-table tbody tr {
cursor: pointer; transition: background 0.1s;
border-bottom: 1px solid rgba(30,42,58,0.5);
}
.hh-table tbody tr:hover { background: var(--bg-tertiary); }
.hh-table tbody tr.selected { background: rgba(61,142,240,0.08); }
.hh-table td {
padding: 5px 9px; white-space: nowrap; overflow: hidden;
text-overflow: ellipsis; color: var(--text-secondary);
}
.col-no { width: 36px; text-align: center; color: var(--text-muted); font-size: 10px; }
.col-method { width: 65px; font-weight: 700; }
.col-status { width: 52px; font-weight: 600; }
.col-size { width: 60px; color: var(--text-muted); }
.col-time { width: 58px; color: var(--text-muted); }
.hh-empty {
padding: 35px; text-align: center; color: var(--text-muted); font-size: 11px;
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
}
.hh-table-scroll { max-height: 250px; overflow-y: auto; }
/* ── Packet Detail ── */
.pkt-detail {
margin-top: 10px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.pkt-detail-bar {
display: flex; align-items: center; justify-content: space-between;
padding: 6px 10px; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.pkt-detail-title { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.pkt-detail-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.pkt-copy-btn {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 10px; padding: 2px 7px; border-radius: 3px; cursor: pointer;
border: 1px solid var(--border); background: var(--bg-tertiary);
color: var(--text-muted); transition: all 0.15s;
}
.pkt-copy-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.pkt-save-btn {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 10px; padding: 2px 7px; border-radius: 3px; cursor: pointer;
border: 1px solid var(--accent-green); background: rgba(39,201,63,0.08);
color: var(--accent-green); transition: all 0.15s;
}
.pkt-save-btn:hover { background: rgba(39,201,63,0.15); }
.pkt-tabs {
display: flex; gap: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
.pkt-tab {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 11px; font-weight: 500; color: var(--text-muted);
background: none; border: none; padding: 6px 12px; cursor: pointer;
border-bottom: 2px solid transparent; transition: all 0.15s;
}
.pkt-tab:hover { color: var(--text-secondary); }
.pkt-tab.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }
.pkt-content {
max-height: 260px; overflow: auto; padding: 8px 10px;
font-family: 'JetBrains Mono', monospace; font-size: 11px;
line-height: 1.6; white-space: pre-wrap; word-break: break-all;
color: var(--text-primary); background: var(--bg-primary);
}
/* ── Packet syntax ── */
.pkt-method { color: var(--accent-green); font-weight: 700; }
.pkt-url { color: var(--accent-blue); }
.pkt-version { color: var(--text-muted); }
.pkt-hdr-key { color: var(--accent-cyan); }
.pkt-hdr-val { color: var(--text-primary); }
.pkt-status-ok { color: var(--accent-green); font-weight: 700; }
.pkt-status-err { color: var(--accent-red); font-weight: 700; }
.pkt-body-sep { color: var(--text-muted); }
/* ── History Export Bar ── */
.export-bar {
display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
padding: 8px 10px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px;
}
.export-label { font-size: 10px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-right: 4px; }
.export-btn {
font-size: 10px; font-weight: 500; padding: 3px 9px;
border-radius: 3px; cursor: pointer; border: 1px solid var(--border);
background: var(--bg-tertiary); color: var(--text-secondary);
transition: all 0.15s; font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
}
.export-btn:hover { border-color: var(--accent-green); color: var(--accent-green); }
/* ── Bookmarklet ── */
.bm-section {
margin-top: 16px; padding: 12px; background: var(--bg-secondary);
border: 1px solid var(--border); border-radius: 8px;
}
.bm-section h3 { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.bm-section p { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.bm-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.bm-btn {
font-family: 'Noto Sans', 'Noto Sans KR', sans-serif;
font-size: 11px; font-weight: 500; padding: 5px 11px;
border-radius: var(--radius); cursor: pointer; transition: all 0.15s; border: 1px solid var(--border);
}
.bm-btn-primary { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.bm-btn-primary:hover { background: #5aa0f5; }
.bm-btn-secondary { background: var(--bg-tertiary); color: var(--text-secondary); }
.bm-btn-secondary:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
/* ── Method Colors ── */
.m-GET { color: var(--method-get); }
.m-POST { color: var(--method-post); }
.m-PUT { color: var(--method-put); }
.m-DELETE { color: var(--method-delete); }
.m-PATCH { color: var(--method-patch); }
.m-HEAD { color: var(--accent-yellow); }
.m-OPTIONS { color: var(--text-secondary); }
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
/* ── Overlay / Draggable mode ── */
.overlay-mode {
position: fixed !important;
z-index: 2147483647 !important; background: var(--bg-primary) !important;
border: 1px solid var(--border) !important; border-radius: 10px !important;
box-shadow: 0 8px 48px rgba(0,0,0,0.7) !important;
overflow-y: auto !important; resize: both !important;
min-width: 400px; min-height: 200px;
}
.overlay-mode .container { padding: 12px !important; max-width: 100% !important; }
.overlay-mode .app-header { cursor: move !important; }
.overlay-mode .btn-close-overlay { display: flex !important; }
/* drag handle hint */
.app-header::after {
content: '⠿';
color: var(--text-muted);
font-size: 14px;
opacity: 0;
transition: opacity 0.2s;
pointer-events: none;
margin-left: 6px;
}
.overlay-mode .app-header::after { opacity: 0.4; }
/* ── Toast ── */
.toast {
position: fixed; bottom: 20px; right: 20px;
background: var(--bg-tertiary); border: 1px solid var(--accent-green);
color: var(--accent-green); font-size: 11px; font-family: 'JetBrains Mono', monospace;
padding: 7px 14px; border-radius: 5px; z-index: 99998;
animation: slideUp 0.2s ease;
pointer-events: none;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
<script>
if (window.opener || window.frameElement) {
document.addEventListener('DOMContentLoaded', function() {
var btn = document.getElementById('btnCloseOverlay');
if (btn) btn.style.display = 'flex';
// Auto apply overlay-mode
document.getElementById('app').classList.add('overlay-mode');
// Set initial position
var app = document.getElementById('app');
app.style.top = '8px';
app.style.right = '8px';
app.style.width = '640px';
app.style.maxHeight = 'calc(100vh - 16px)';
});
}
</script>
</head>
<body>
<!-- ══ Intercept Modal ══ -->
<div class="intercept-overlay" id="interceptOverlay">
<div class="intercept-modal">
<div class="intercept-modal-header">
<div class="intercept-modal-title">
<span class="intercept-dot"></span>
INTERCEPT — 요청 변조
</div>
<span style="font-size:10px;color:var(--text-muted);font-family:'JetBrains Mono',monospace;" id="interceptReqLabel"></span>
</div>
<div class="intercept-modal-body">
<div class="intercept-label">Raw Request (편집 가능)</div>
<textarea class="intercept-raw-ta" id="interceptRawTa" spellcheck="false"></textarea>
<div class="intercept-info">
💡 첫 줄: <code>METHOD /path HTTP/1.1</code> | 헤더: <code>Key: Value</code> | 빈 줄 이후 Body
</div>
</div>
<div class="intercept-modal-footer">
<button class="btn-drop" id="btnDrop">🚫 Drop</button>
<button class="btn-edit-forward" id="btnForwardEdited">✏️ Edit & Forward</button>
<button class="btn-forward" id="btnForward">▶ Forward</button>
</div>
</div>
</div>
<div class="container" id="app">
<div class="app-header" id="appHeader">
<div class="app-header-left">
<div class="logo">R</div>
<h1>Requester</h1>
<span class="app-header-badge">v3.0</span>
</div>
<div class="header-right">
<span class="intercept-indicator" id="interceptIndicator">⚡ INTERCEPT ON</span>
<button class="btn-close-overlay" id="btnCloseOverlay" title="닫기">×</button>
</div>
</div>
<div class="main-tabs" id="mainTabs">
<button class="main-tab active" data-panel="requester">Requester</button>
<button class="main-tab" data-panel="httpHistory">HTTP History <span class="badge-count" id="hhCount">0</span></button>
<button class="main-tab" data-panel="settings">Settings</button>
</div>
<!-- ═══ Requester ═══ -->
<div class="main-panel active" id="panel-requester">
<div class="request-bar">
<select class="method-select" id="methodSelect">
<option value="GET">GET</option>
<option value="POST" selected>POST</option>
<option value="PUT">PUT</option>
<option value="DELETE">DELETE</option>
<option value="PATCH">PATCH</option>
<option value="HEAD">HEAD</option>
<option value="OPTIONS">OPTIONS</option>
</select>
<input class="url-input" id="urlInput" type="text" placeholder="https://target.com/api/endpoint" spellcheck="false">
<button class="btn-intercept-toggle" id="btnInterceptToggle" title="요청 인터셉트 ON/OFF">⚡ Intercept</button>
<button class="btn-send" id="btnSend">Send</button>
</div>
<div class="sub-tabs" id="reqSubTabs">
<button class="sub-tab active" data-sub="req-headers">Headers</button>
<button class="sub-tab" data-sub="req-body">Body</button>
</div>
<div class="sub-panel active" id="sub-req-headers">
<div id="headersEditor"></div>
<button class="btn-add-hdr" id="btnAddHdr">+ Add Header</button>
</div>
<div class="sub-panel" id="sub-req-body">
<div class="body-type-bar">
<select class="body-type-sel" id="bodyTypeSel">
<option value="raw">Raw</option>
<option value="json">JSON</option>
<option value="form">x-www-form-urlencoded</option>
</select>
</div>
<textarea class="body-ta" id="bodyInput" placeholder="Request body..." spellcheck="false"></textarea>
</div>
<div class="resp-section" id="respSection">
<div class="placeholder-msg" id="respPlaceholder">요청을 보내면 응답이 여기에 표시됩니다</div>
<div id="respContent" style="display:none;">
<div class="resp-bar">
<span class="status-badge" id="statusBadge"></span>
<div class="resp-meta"><span id="respTime"></span><span id="respSize"></span></div>
</div>
<div class="sub-tabs" id="respSubTabs">
<button class="sub-tab active" data-sub="resp-body">Body</button>
<button class="sub-tab" data-sub="resp-headers">Headers</button>
<button class="sub-tab" data-sub="resp-raw">Raw Packet</button>
</div>
<div class="sub-panel active" id="sub-resp-body">
<div class="resp-content-box"><pre id="respBody"></pre></div>
</div>
<div class="sub-panel" id="sub-resp-headers">
<div class="resp-content-box"><pre id="respHdrs"></pre></div>
</div>
<div class="sub-panel" id="sub-resp-raw">
<div style="display:flex;justify-content:flex-end;padding:5px 8px;background:var(--bg-secondary);border-bottom:1px solid var(--border);">
<button class="pkt-copy-btn" id="btnCopyRespRaw">Copy Raw</button>
</div>
<div class="resp-content-box"><pre id="respRawPkt"></pre></div>
</div>
</div>
</div>
<div class="bm-section" id="bmSection">
<h3>🔖 북마클릿 / 콘솔 스크립트</h3>
<p>
대상 사이트에서 실행하면 Same-Origin 환경으로 동작합니다. CORS 제약 없이 쿠키·세션이 자동 포함됩니다.<br>
<strong>서브도메인 전환</strong>: Settings 탭에서 목표 도메인을 지정하면 서브도메인도 요청 가능합니다.
</p>
<div class="bm-actions">
<button class="bm-btn bm-btn-primary" id="btnCopyConsole">📋 콘솔 스크립트 복사</button>
<button class="bm-btn bm-btn-secondary" id="btnCopyBookmarklet">📋 북마클릿 복사</button>
</div>
</div>
</div>
<!-- ═══ HTTP History ═══ -->
<div class="main-panel" id="panel-httpHistory">
<div class="http-history-wrap">
<div class="export-bar">
<span class="export-label">EXPORT</span>
<button class="export-btn" id="btnExportSelected">📄 선택 패킷 .txt</button>
<button class="export-btn" id="btnExportAll">📦 전체 .txt</button>
<button class="export-btn" id="btnExportBurp">🔫 Burp 형식</button>
</div>
<div class="hh-filter-bar">
<input class="hh-filter-input" id="hhFilter" placeholder="URL 필터... (/api, login, .json, GET, POST)" spellcheck="false">
<div class="hh-controls">
<button class="hh-toggle" id="hhToggleCapture" title="페이지 요청 자동 캡처">● Capture</button>
<button class="hh-btn" id="hhBtnClear">Clear</button>
</div>
</div>
<div class="hh-table-wrap">
<table class="hh-table" id="hhTableHead">
<colgroup><col class="col-no"><col class="col-method"><col><col class="col-status"><col class="col-size"><col class="col-time"></colgroup>
<thead><tr>
<th class="col-no">#</th><th class="col-method">Method</th><th>URL</th><th class="col-status">Status</th><th class="col-size">Size</th><th class="col-time">Time</th>
</tr></thead>
</table>
<div class="hh-table-scroll" id="hhTableBody">
<table class="hh-table">
<colgroup><col class="col-no"><col class="col-method"><col><col class="col-status"><col class="col-size"><col class="col-time"></colgroup>
<tbody id="hhTbody"></tbody>
</table>
<div class="hh-empty" id="hhEmpty">
Capture를 활성화하면 페이지에서 발생하는 모든 요청이 여기에 표시됩니다.<br>
Requester에서 보낸 요청도 함께 기록됩니다.
</div>
</div>
</div>
<div class="pkt-detail" id="pktDetail" style="display:none;">
<div class="pkt-detail-bar">
<span class="pkt-detail-title" id="pktDetailTitle">패킷 상세</span>
<div class="pkt-detail-actions">
<button class="pkt-copy-btn" id="pktCopyReq">Copy Req</button>
<button class="pkt-copy-btn" id="pktCopyRes">Copy Res</button>
<button class="pkt-copy-btn" id="pktCopyBody">Copy Body</button>
<button class="pkt-save-btn" id="pktSaveTxt">💾 .txt</button>
<button class="pkt-copy-btn" id="pktSendToReq">→ Requester</button>
</div>
</div>
<div class="pkt-tabs" id="pktTabs">
<button class="pkt-tab active" data-pkt="pkt-req">Request</button>
<button class="pkt-tab" data-pkt="pkt-res">Response</button>
</div>
<div class="sub-panel active" id="sub-pkt-req"><pre class="pkt-content" id="pktReqContent"></pre></div>
<div class="sub-panel" id="sub-pkt-res"><pre class="pkt-content" id="pktResContent"></pre></div>
</div>
</div>
</div>
<!-- ═══ Settings ═══ -->
<div class="main-panel" id="panel-settings">
<div style="display:flex;flex-direction:column;gap:14px;padding:4px 0;">
<!-- Subdomain Override -->
<div style="background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;padding:14px;">
<div style="font-size:12px;font-weight:700;color:var(--text-secondary);margin-bottom:6px;">🌐 서브도메인 요청 허용</div>
<div style="font-size:11px;color:var(--text-muted);margin-bottom:10px;line-height:1.6;">
Same-Origin 제약으로 서브도메인(b.example.com)에 직접 요청할 수 없습니다.<br>
아래에 허용할 도메인을 추가하면, 해당 URL은 제한 없이 전송을 시도합니다.<br>
<span style="color:var(--accent-orange);">⚠ 실제 CORS 정책은 서버에서 결정됩니다. 브라우저 확장(CORS Unblock 등) 필요 시 안내됩니다.</span>
</div>
<div style="display:flex;gap:6px;margin-bottom:8px;">
<input id="subdomainInput" style="flex:1;font-family:'JetBrains Mono',monospace;font-size:11px;background:var(--bg-input);color:var(--text-primary);border:1px solid var(--border);border-radius:4px;padding:5px 8px;outline:none;" placeholder="b.example.com 또는 *.example.com" spellcheck="false">
<button id="btnAddDomain" style="font-size:11px;padding:5px 12px;background:var(--accent-blue);color:#fff;border:none;border-radius:4px;cursor:pointer;">추가</button>
</div>
<div id="allowedDomains" style="display:flex;flex-wrap:wrap;gap:5px;"></div>
</div>
<!-- Intercept Settings -->
<div style="background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;padding:14px;">
<div style="font-size:12px;font-weight:700;color:var(--text-secondary);margin-bottom:6px;">⚡ Intercept 설정</div>
<div style="font-size:11px;color:var(--text-muted);margin-bottom:10px;line-height:1.6;">
Intercept 버튼을 켜면 Send 시 요청이 중단되고 변조 팝업이 표시됩니다.<br>
Raw 형식으로 직접 편집 후 Forward / Drop 을 선택할 수 있습니다.
</div>
<div style="display:flex;align-items:center;gap:10px;">
<label style="display:flex;align-items:center;gap:6px;font-size:11px;color:var(--text-secondary);cursor:pointer;">
<input type="checkbox" id="chkInterceptCapture" style="accent-color:var(--accent-orange);">
Capture된 요청도 인터셉트
</label>
</div>
</div>
<!-- Drag mode -->
<div style="background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;padding:14px;">
<div style="font-size:12px;font-weight:700;color:var(--text-secondary);margin-bottom:6px;">🖱️ 위치 고정 / 자유 이동</div>
<div style="font-size:11px;color:var(--text-muted);margin-bottom:10px;line-height:1.6;">
팝업/오버레이 모드에서 헤더바를 드래그해 위치를 변경할 수 있습니다.<br>
아래 버튼으로 위치를 초기화하거나 고정할 수 있습니다.
</div>
<div style="display:flex;gap:6px;">
<button class="bm-btn bm-btn-secondary" id="btnResetPos">↺ 위치 초기화</button>
<button class="bm-btn bm-btn-secondary" id="btnToggleDrag" style="color:var(--accent-green);">🔓 드래그 활성</button>
</div>
</div>
</div>
</div>
</div><!-- /.container -->
<script>
(function() {
'use strict';
// ══════════════════════════════════════
// State
// ══════════════════════════════════════
var capturedHistory = [];
var captureEnabled = false;
var selectedPktIdx = -1;
var headerRows = [{ key: 'Content-Type', value: 'application/x-www-form-urlencoded' }];
var interceptEnabled = false;
var allowedDomains = [];
var dragLocked = false;
// Intercept promise resolver
var interceptResolver = null;
var $ = function(s) { return document.querySelector(s); };
var $$ = function(s) { return document.querySelectorAll(s); };
var targetWin = window.opener || window.parent;
if (targetWin === window) targetWin = window;
// ══════════════════════════════════════
// Tabs
// ══════════════════════════════════════
$$('.main-tab').forEach(function(tab) {
tab.addEventListener('click', function() {
$$('.main-tab').forEach(function(t) { t.classList.remove('active'); });
tab.classList.add('active');
$$('.main-panel').forEach(function(p) { p.classList.remove('active'); });
$('#panel-' + tab.dataset.panel).classList.add('active');
});
});
function initSubTabs(container, panels) {
container.querySelectorAll('.sub-tab, .pkt-tab').forEach(function(tab) {
tab.addEventListener('click', function() {
container.querySelectorAll('.sub-tab, .pkt-tab').forEach(function(t) { t.classList.remove('active'); });
tab.classList.add('active');
var target = tab.dataset.sub || tab.dataset.pkt;
panels.forEach(function(p) { p.classList.toggle('active', p.id === 'sub-' + target); });
});
});
}
initSubTabs($('#reqSubTabs'), [$('#sub-req-headers'), $('#sub-req-body')]);
initSubTabs($('#respSubTabs'), [$('#sub-resp-body'), $('#sub-resp-headers'), $('#sub-resp-raw')]);
initSubTabs($('#pktTabs'), [$('#sub-pkt-req'), $('#sub-pkt-res')]);
// ── Method color ──
var methodSelect = $('#methodSelect');
function updateMethodColor() { methodSelect.className = 'method-select m-' + methodSelect.value; }
methodSelect.addEventListener('change', updateMethodColor);
updateMethodColor();
// ══════════════════════════════════════
// Headers Editor
// ══════════════════════════════════════
var headersEditor = $('#headersEditor');
function renderHeaders() {
headersEditor.innerHTML = '';
headerRows.forEach(function(row, i) {
var div = document.createElement('div');
div.className = 'header-row';
div.innerHTML =
'<input class="hdr-key" placeholder="Header name" value="' + esc(row.key) + '" data-idx="' + i + '" data-f="key" spellcheck="false">' +
'<input class="hdr-val" placeholder="Value" value="' + esc(row.value) + '" data-idx="' + i + '" data-f="value" spellcheck="false">' +
'<button class="btn-icon remove" data-idx="' + i + '" title="삭제">×</button>';
headersEditor.appendChild(div);
});
headersEditor.querySelectorAll('input').forEach(function(inp) {
inp.addEventListener('input', function(e) {
headerRows[+e.target.dataset.idx][e.target.dataset.f] = e.target.value;
});
});
headersEditor.querySelectorAll('.remove').forEach(function(btn) {
btn.addEventListener('click', function(e) {
headerRows.splice(+e.target.closest('[data-idx]').dataset.idx, 1);
renderHeaders();
});
});
}
$('#btnAddHdr').addEventListener('click', function() {
headerRows.push({ key: '', value: '' });
renderHeaders();
var inputs = headersEditor.querySelectorAll('.hdr-key');
if (inputs.length) inputs[inputs.length - 1].focus();
});
renderHeaders();
$('#bodyTypeSel').addEventListener('change', function() {
var ctMap = { raw: 'text/plain', json: 'application/json', form: 'application/x-www-form-urlencoded' };
var ct = ctMap[$('#bodyTypeSel').value] || 'text/plain';
var row = headerRows.find(function(r) { return r.key.toLowerCase() === 'content-type'; });
if (row) row.value = ct; else headerRows.unshift({ key: 'Content-Type', value: ct });
renderHeaders();
});
// ══════════════════════════════════════
// Intercept Toggle
// ══════════════════════════════════════
var btnInterceptToggle = $('#btnInterceptToggle');
btnInterceptToggle.addEventListener('click', function() {
interceptEnabled = !interceptEnabled;
btnInterceptToggle.classList.toggle('active', interceptEnabled);
$('#interceptIndicator').classList.toggle('active', interceptEnabled);
});
// ══════════════════════════════════════
// Intercept Modal Logic
// ══════════════════════════════════════
function buildRawFromParams(method, url, headers, body) {
var p = parseUrl(url);
var raw = method + ' ' + p.path + ' HTTP/1.1\n';
if (p.host) raw += 'Host: ' + p.host + '\n';
for (var k in headers) {
if (k.toLowerCase() !== 'host') raw += k + ': ' + headers[k] + '\n';
}
raw += '\n';
if (body) raw += body;
return raw;
}
function parseRawRequest(raw) {
var lines = raw.replace(/\r\n/g, '\n').split('\n');
var firstLine = lines[0] || '';
var parts = firstLine.split(' ');
var method = parts[0] || 'GET';
var path = parts[1] || '/';
var headers = {};
var bodyLines = [];
var inBody = false;
var host = '';
for (var i = 1; i < lines.length; i++) {
if (!inBody && lines[i] === '') { inBody = true; continue; }
if (inBody) {
bodyLines.push(lines[i]);
} else {
var idx = lines[i].indexOf(':');
if (idx > 0) {
var k = lines[i].slice(0, idx).trim();
var v = lines[i].slice(idx + 1).trim();
if (k.toLowerCase() === 'host') host = v;
else headers[k] = v;
}
}
}
var body = bodyLines.join('\n');
// Reconstruct full URL
var baseUrl = '';
if (host) baseUrl = (path.startsWith('https://') || path.startsWith('http://')) ? path : 'https://' + host + path;
else baseUrl = path;
return { method: method, url: baseUrl, headers: headers, body: body };
}
function showInterceptModal(method, url, headers, body) {
return new Promise(function(resolve) {
interceptResolver = resolve;
var raw = buildRawFromParams(method, url, headers, body);
$('#interceptRawTa').value = raw;
$('#interceptReqLabel').textContent = method + ' ' + url;
$('#interceptOverlay').classList.add('active');
});
}
$('#btnForward').addEventListener('click', function() {
if (interceptResolver) {
var parsed = parseRawRequest($('#interceptRawTa').value);
interceptResolver({ action: 'forward', ...parsed });
interceptResolver = null;
$('#interceptOverlay').classList.remove('active');
}
});
$('#btnForwardEdited').addEventListener('click', function() {
if (interceptResolver) {
var parsed = parseRawRequest($('#interceptRawTa').value);
interceptResolver({ action: 'forward', ...parsed });
interceptResolver = null;
$('#interceptOverlay').classList.remove('active');
}
});
$('#btnDrop').addEventListener('click', function() {
if (interceptResolver) {
interceptResolver({ action: 'drop' });
interceptResolver = null;
$('#interceptOverlay').classList.remove('active');
}
});
// ══════════════════════════════════════
// Send Request
// ══════════════════════════════════════
var btnSend = $('#btnSend');
var urlInput = $('#urlInput');
var bodyInput = $('#bodyInput');
btnSend.addEventListener('click', sendRequest);
urlInput.addEventListener('keydown', function(e) { if (e.key === 'Enter') sendRequest(); });
async function sendRequest() {
var method = methodSelect.value;
var url = urlInput.value.trim();
if (!url) { urlInput.focus(); return; }
var headers = {};
headerRows.forEach(function(r) { if (r.key.trim()) headers[r.key.trim()] = r.value; });
var body = (['GET','HEAD'].indexOf(method) === -1) ? bodyInput.value : '';
// ── Intercept ──
if (interceptEnabled) {
var result = await showInterceptModal(method, url, headers, body);
if (result.action === 'drop') {
showToast('🚫 요청 Dropped');
return;
}
method = result.method;
url = result.url;
headers = result.headers;
body = result.body;
}
btnSend.classList.add('loading'); btnSend.textContent = '...';
var t0 = performance.now();
var opts = { method: method, headers: headers, credentials: 'include' };
if (body) opts.body = body;
try {
var resp = await fetch(url, opts);
var elapsed = Math.round(performance.now() - t0);
var bodyText = await resp.text();
var respHeaders = {};
resp.headers.forEach(function(v, k) { respHeaders[k] = v; });
var entry = {
method: method, url: url, status: resp.status, statusText: resp.statusText,
time: elapsed, size: bodyText.length,
responseBody: bodyText, responseHeaders: respHeaders,
requestHeaders: headers, requestBody: opts.body || '',
timestamp: new Date(), source: 'manual'
};
addToCaptured(entry);
renderRequesterResponse(entry);
} catch (err) {
var elapsed = Math.round(performance.now() - t0);
var entry = {
method: method, url: url, status: 0, statusText: 'Error',
time: elapsed, size: 0,