Revision 7e950d31 lib/http/__init__.py
b/lib/http/__init__.py | ||
---|---|---|
302 | 302 |
class HttpJsonConverter: # pylint: disable-msg=W0232 |
303 | 303 |
CONTENT_TYPE = "application/json" |
304 | 304 |
|
305 |
def Encode(self, data): |
|
305 |
@staticmethod |
|
306 |
def Encode(data): |
|
306 | 307 |
return serializer.DumpJson(data) |
307 | 308 |
|
308 |
def Decode(self, data): |
|
309 |
@staticmethod |
|
310 |
def Decode(data): |
|
309 | 311 |
return serializer.LoadJson(data) |
310 | 312 |
|
311 | 313 |
|
Also available in: Unified diff