(self, context: HttpContext)
| 241 | return self.cdn |
| 242 | |
| 243 | def read_event_data(self, context: HttpContext) -> List[Dict]: |
| 244 | try: |
| 245 | if context.request_headers().get('content-type') == 'application/octet-stream': |
| 246 | return [deserialize_binary_event(context.request_body())] |
| 247 | return json.loads(context.request_body()) |
| 248 | except Exception: |
| 249 | return [] |
| 250 | |
| 251 | @contextmanager |
| 252 | def handle_request_context(self, context: HttpContext): |
no test coverage detected