(self)
| 121 | raise NotImplementedError("serialize_to_request") |
| 122 | |
| 123 | def _create_default_request(self): |
| 124 | # Creates a boilerplate default request dict that subclasses |
| 125 | # can use as a starting point. |
| 126 | serialized = { |
| 127 | 'url_path': '/', |
| 128 | 'query_string': '', |
| 129 | 'method': self.DEFAULT_METHOD, |
| 130 | 'headers': {}, |
| 131 | # An empty body is represented as an empty byte string. |
| 132 | 'body': b'', |
| 133 | } |
| 134 | return serialized |
| 135 | |
| 136 | # Some extra utility methods subclasses can use. |
| 137 |
no outgoing calls
no test coverage detected