Method
get
(
self,
path: str,
params: Optional[
Mapping[str, Union[None, str, int, float, bool, list, tuple]]
] = None,
headers: Optional[Mapping[str, str]] = None,
timeout: Optional[float] = None,
expect_json: bool = True,
)
Source from the content-addressed store, hash-verified
| 131 | |
| 132 | # Public JSON-centric helpers |
| 133 | def get( |
| 134 | self, |
| 135 | path: str, |
| 136 | params: Optional[ |
| 137 | Mapping[str, Union[None, str, int, float, bool, list, tuple]] |
| 138 | ] = None, |
| 139 | headers: Optional[Mapping[str, str]] = None, |
| 140 | timeout: Optional[float] = None, |
| 141 | expect_json: bool = True, |
| 142 | ) -> Union[HttpResponse, Any]: |
| 143 | return self._json_call( |
| 144 | "GET", |
| 145 | path, |
| 146 | params=params, |
| 147 | headers=headers, |
| 148 | timeout=timeout, |
| 149 | body=None, |
| 150 | expect_json=expect_json, |
| 151 | ) |
| 152 | |
| 153 | def delete( |
| 154 | self, |