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: context/getting-started.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ $ bundle add protocol-grpc
15
15
`protocol-grpc` has several core concepts:
16
16
17
17
- A {ruby Protocol::GRPC::Interface} class which defines gRPC service contracts with RPC methods, request/response types, and streaming patterns.
18
-
- A {ruby Protocol::GRPC::Body::ReadableBody} class which handles reading gRPC messages from HTTP request/response bodies with automatic framing and decoding.
19
-
- A {ruby Protocol::GRPC::Body::WritableBody} class which handles writing gRPC messages to HTTP request/response bodies with automatic framing and encoding.
18
+
- A {ruby Protocol::GRPC::Body::Readable} class which handles reading gRPC messages from HTTP request/response bodies with automatic framing and decoding.
19
+
- A {ruby Protocol::GRPC::Body::Writable} class which handles writing gRPC messages to HTTP request/response bodies with automatic framing and encoding.
20
20
- A {ruby Protocol::GRPC::Middleware} abstract base class for building gRPC server applications.
21
21
- A {ruby Protocol::GRPC::Call} class which represents the context of a single gRPC RPC call, including deadline tracking.
22
22
- A {ruby Protocol::GRPC::Status} module with gRPC status code constants.
@@ -47,15 +47,15 @@ end
47
47
48
48
### Building a Request
49
49
50
-
Build gRPC requests using `Protocol::GRPC::Methods` and `Protocol::GRPC::Body::WritableBody`:
50
+
Build gRPC requests using `Protocol::GRPC::Methods` and `Protocol::GRPC::Body::Writable`:
51
51
52
52
```ruby
53
53
require"protocol/grpc"
54
54
require"protocol/grpc/methods"
55
-
require"protocol/grpc/body/writable_body"
55
+
require"protocol/grpc/body/writable"
56
56
57
57
# Build request body
58
-
body =Protocol::GRPC::Body::WritableBody.new(message_class:Hello::HelloRequest)
58
+
body =Protocol::GRPC::Body::Writable.new(message_class:Hello::HelloRequest)
0 commit comments