docs: stop presenting the in-memory client as the way to connect (#3443)
This commit is contained in:
parent
0c9136841f
commit
7bb486a10f
1 changed files with 803 additions and 598 deletions
|
|
@ -21,8 +21,9 @@ uv run python -m stories.resources.client --http --server server_lowlevel
|
|||
|
||||
- `client.py` `async with Client(target, mode=mode) as client:` — the one line
|
||||
every client example exists to teach. `target` is anything `Client()`
|
||||
accepts (an in-process server, a transport, or an HTTP URL) and `mode=` is
|
||||
always explicit; the rest of the story is the body of that `async with`.
|
||||
accepts (an HTTP URL, `StdioServerParameters`, a transport, or, in tests, an
|
||||
in-process server) and `mode=` is always explicit; the rest of the story is
|
||||
the body of that `async with`.
|
||||
- `server.py` `app_config` vs `greeting` — a URI with no `{}` registers a
|
||||
static resource (appears in `resources/list`); a URI with `{name}` registers
|
||||
a template (appears only in `resources/templates/list`) and the placeholder
|
||||
|
|
|
|||
Loading…
Reference in a new issue