Merge pull request #5 from slashmo/ktoso-patch-1

=readme bolden the primary usage style
This commit is contained in:
Konrad `ktoso` Malawski 2020-07-07 17:09:26 +09:00 committed by GitHub
commit a0e5c7910e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ This way when reading the call side, users of these APIs can learn to "ignore" o
Examples:
- `func request(_ url: URL, context: BaggageContext)`, which may be called as `httpClient.request(url, context: context)`
- `func request(_ url: URL,` **`context: BaggageContext`** `)`, which may be called as `httpClient.request(url, context: context)`
- `func handle(_ request: RequestObject,` **`context: FrameworkContext`** `)`
- if a "framework context" exists and _carries_ the baggage context already, it is permitted to pass that context together with the baggage;
- it is _strongly recommended_ to store the baggage context as `baggage` property of `FrameworkContext` in such cases, in order to avoid the confusing spelling of `context.context`, and favoring the self-explanatory `context.baggage` spelling when the baggage is contained in a framework context object.