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
Copy file name to clipboardExpand all lines: README.md
+43-31Lines changed: 43 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,27 @@ if config_env() == :prod do # if you'll use this in prod environment
54
54
...
55
55
```
56
56
57
-
> **Note**: The `options` key can be used to pass additional configuration options such as custom Finch instance or receive timeout settings. You can add any options supported by Req here. For more details check [Req documentation](https://hexdocs.pm/req/Req.Steps.html#run_finch/1-request-options).
57
+
> #### `options` key {: .tip}
58
+
>
59
+
> The `options` key can be used to pass additional configuration
60
+
> options such as custom Finch instance or receive timeout
61
+
> settings. You can add any options supported by Req here. For
62
+
> more details check [Req documentation](https://hexdocs.pm/req/Req.Steps.html#run_finch/1-request-options).
And here's a reference taken from one of functions from [`Collections`](https://hexdocs.pm/open_api_typesense/OpenApiTypesense.Collections.html#create_collection/3), as
140
-
you may want to match the params:
164
+
<!-- tabs-close -->
165
+
166
+
Check [the examples](./guides/custom_http_client.md) on some HTTP client implementations.
167
+
168
+
## Adding [cache, retry, compress_body](https://hexdocs.pm/req/Req.html#new/1) in the built in client
169
+
170
+
E.g. when a user wants to change `retry` and `cache` options
141
171
142
172
```elixir
143
-
defcreate_collection(%Connection{} = conn, body, opts) whenis_struct(conn) do
Check [the examples](./guides/custom_http_client.md) on some HTTP client implementations.
176
+
See implementation [OpenApiTypesense.Client](`OpenApiTypesense.Client`)https://github.com/jaeyson/open_api_typesense/blob/main/lib/open_api_typesense/client.ex
0 commit comments