@@ -140,7 +140,7 @@ module Protocol
140140
141141 # Parse service and method from gRPC path
142142 # @parameter path [String] e.g., "/my_service.Greeter/SayHello"
143- # @returns [Array (String, String)] [ service, method]
143+ # @returns [Tuple (String, String)] of service and method.
144144 def self .parse_path (path )
145145 parts = path.split(" /" )
146146 [parts[1 ], parts[2 ]]
@@ -287,7 +287,7 @@ module Protocol
287287
288288 # Extract gRPC status message from headers
289289 # @parameter headers [Protocol::HTTP::Headers]
290- # @returns [String, nil ] Status message
290+ # @returns [String | Nil ] Status message
291291 def self .extract_message (headers )
292292 message = headers[" grpc-message" ]
293293 message ? URI .decode_www_form_component(message) : nil
@@ -329,7 +329,7 @@ module Protocol
329329 # @parameter body [Protocol::HTTP::Body::Readable] The underlying HTTP body
330330 # @parameter message_class [Class, nil] Protobuf message class with .decode method
331331 # If nil, returns raw binary data (useful for channel adapters)
332- # @parameter encoding [String, nil ] Compression encoding (from grpc-encoding header)
332+ # @parameter encoding [String | Nil ] Compression encoding (from grpc-encoding header)
333333 def initialize (body , message_class: nil , encoding: nil )
334334 super (body)
335335 @message_class = message_class
@@ -408,7 +408,7 @@ module Protocol
408408 # Writes length-prefixed gRPC messages
409409 # This is the standard writable body for gRPC - all gRPC requests use message framing
410410 class Writable < Protocol ::HTTP ::Body ::Writable
411- # @parameter encoding [String, nil ] Compression encoding (gzip, deflate, identity)
411+ # @parameter encoding [String | Nil ] Compression encoding (gzip, deflate, identity)
412412 # @parameter level [Integer] Compression level if encoding is used
413413 def initialize (encoding: nil , level: Zlib ::DEFAULT_COMPRESSION , ** options)
414414 super (** options)
@@ -574,7 +574,7 @@ module Protocol
574574 end
575575
576576 # Get peer information (client address)
577- # @returns [String, nil ]
577+ # @returns [String | Nil ]
578578 def peer
579579 @request .peer&.to_s
580580 end
0 commit comments