Skip to content

Commit

Permalink
Improve readme: add requests section
Browse files Browse the repository at this point in the history
  • Loading branch information
hey-researcher committed Feb 25, 2024
1 parent 923c2be commit 713eae0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ To use built python binding you need to copy `tonlib_multiclient` dynamic lib (.
```bash
cp build/py/tonlib_multiclient.so /path/to/your/python/project
```

## Requests

### Request<T>
This structure is suitable for general request operations where the response type is known and directly utilized.

### RequestFunction<T>
A specialized version of Request for cases where `TonlibClient::make_request` cannot process the request (`raw_getAccountState` etc).

### RequestCallback
Designed for advanced use cases where the user must initialize and manage the response through your own global callback. Requires explicit setup for callback handling.

### RequestJson
Enables sending requests in raw JSON format, requiring minimal configuration besides the JSON string itself and the standard request parameters.

0 comments on commit 713eae0

Please sign in to comment.