mirror of
https://codeberg.org/JasterV/grpc-slides.git
synced 2026-04-26 18:40:03 +00:00
Update slides
This commit is contained in:
parent
09eef7420d
commit
0b34afd23a
1 changed files with 7 additions and 1 deletions
|
|
@ -503,6 +503,10 @@ pub enum CustomerDeclineRenewalReason {
|
||||||
```
|
```
|
||||||
</div></div>
|
</div></div>
|
||||||
|
|
||||||
|
note:
|
||||||
|
|
||||||
|
- Most fields are generated as Option due to the backward/forward compatibility nature of Protobuf
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Generated types
|
## Generated types
|
||||||
|
|
@ -662,7 +666,9 @@ let _response = client.generate_contract(request).await?;
|
||||||
|
|
||||||
note:
|
note:
|
||||||
|
|
||||||
What if we wanted to add those headers for every request? Now we talk about interceptors
|
- We use the Metadata feature to set authorization headers to the request
|
||||||
|
- The ClientStub exposes the same API we defined in our protobuf service definition
|
||||||
|
- It handles all the packing-unpacking as well as the network
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue