File tree 3 files changed +199
-77
lines changed
3 files changed +199
-77
lines changed Original file line number Diff line number Diff line change 1
- import main
2
-
3
- if __name__ == '__main__' :
4
- main .main ()
1
+ from reqable .reqable import *
Original file line number Diff line number Diff line change 1
1
import sys
2
+ import os
3
+
4
+ pwd = os .path .dirname (os .path .abspath (__file__ ))
5
+ if pwd not in sys .path :
6
+ sys .path .append (pwd )
7
+
2
8
import json
3
9
from reqable import CaptureContext , CaptureHttpRequest , CaptureHttpResponse
4
10
import addons
@@ -25,6 +31,8 @@ def onRequest(request):
25
31
callback .write (json .dumps ({
26
32
'request' : result .serialize (),
27
33
'env' : context .env ,
34
+ 'highlight' : context .highlight ,
35
+ 'comment' : context .comment ,
28
36
'shared' : context .shared ,
29
37
}))
30
38
@@ -38,6 +46,8 @@ def onResponse(response):
38
46
callback .write (json .dumps ({
39
47
'response' : result .serialize (),
40
48
'env' : context .env ,
49
+ 'highlight' : context .highlight ,
50
+ 'comment' : context .comment ,
41
51
'shared' : context .shared ,
42
52
}))
43
53
You can’t perform that action at this time.
0 commit comments