File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ def onRequest(request):
2626 'request' : result .serialize (),
2727 'env' : context .env ,
2828 'highlight' : context .highlight ,
29+ 'comment' : context .comment ,
2930 'shared' : context .shared ,
3031 }))
3132
@@ -40,6 +41,7 @@ def onResponse(response):
4041 'response' : result .serialize (),
4142 'env' : context .env ,
4243 'highlight' : context .highlight ,
44+ 'comment' : context .comment ,
4345 'shared' : context .shared ,
4446 }))
4547
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ def __init__(self, json: dict):
5656 self ._sid = json ['sid' ]
5757 self ._stime = json ['stime' ]
5858 self ._env = json .get ('env' )
59+ self ._comment = json .get ('comment' )
5960 app = json .get ('app' )
6061 if app is None :
6162 self ._app = None
@@ -137,6 +138,16 @@ def highlight(self) -> Union[None, int]:
137138 def highlight (self , highlight : Highlight ):
138139 self ._highlight = highlight .value
139140
141+ # Get the comment.
142+ @property
143+ def comment (self ) -> Union [None , int ]:
144+ return self ._comment
145+
146+ # Set the comment.
147+ @comment .setter
148+ def comment (self , comment : str ):
149+ self ._comment = comment
150+
140151 def toJson (self ) -> str :
141152 return json .dumps ({
142153 'url' : self ._url ,
@@ -151,6 +162,7 @@ def toJson(self) -> str:
151162 'app' : self ._app .serialize (),
152163 'shared' : self .shared ,
153164 'highlight' : self ._highlight ,
165+ 'comment' : self ._comment ,
154166 })
155167
156168class HttpQueries :
You can’t perform that action at this time.
0 commit comments