Idea
This commit is contained in:
parent
9497747148
commit
f12cd0cea3
@ -4,3 +4,20 @@ Worker (minion)
|
|||||||
|
|
||||||
API
|
API
|
||||||
|
|
||||||
|
Find a way to send typed data between instances
|
||||||
|
- As long as we match the types, we can copy the data
|
||||||
|
|
||||||
|
```py
|
||||||
|
from platform.http import SimpleRequest
|
||||||
|
|
||||||
|
#class SimpleRequest:
|
||||||
|
# method: bytes
|
||||||
|
# domain: bytes
|
||||||
|
# path: bytes
|
||||||
|
# query: bytes
|
||||||
|
# body: bytes
|
||||||
|
|
||||||
|
@exported
|
||||||
|
def handle_message(namespace: bytes, topic: bytes, kind: bytes, body: bytes) -> None:
|
||||||
|
SimpleRequest(b'GET', b'www.google.com', b'some/path', b'query=value', b'').send()
|
||||||
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user