You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that `-` characters in method NSIDs are converted to `_`s, eg the call above is for the method `com.example.my-procedure`.
54
54
55
+
To call a method with non-JSON (eg binary) input, pass `bytes` to the call instead of a `dict`, and pass the content type with `headers={'Content-Type': '...'}`.
56
+
55
57
[Event stream methods](https://atproto.com/specs/event-stream) with type `subscription` are generators that `yield` (header, payload) tuples sent by the server. They take parameters as kwargs, but no positional `input`.
56
58
57
59
```py
@@ -228,6 +230,14 @@ Here's how to package, test, and ship a new release.
228
230
229
231
## Changelog
230
232
233
+
### 0.5 - 2023-12-10
234
+
235
+
* `Client`:
236
+
* Support binary request data automatically based on input type, eg `dict` vs `bytes`.
237
+
* Add new `headers` kwarg to `call` and auto-generated lexicon method calls, useful for providing an explicit `Content-Type` when sending binary data.
0 commit comments