module HTTPX::Plugins::GRPC::OptionsMethods

  1. lib/httpx/plugins/grpc.rb

Public Instance methods

option_call_credentials(value)
[show source]
    # File lib/httpx/plugins/grpc.rb
 96 def option_call_credentials(value)
 97   raise TypeError, ":call_credentials must respond to #call" unless value.respond_to?(:call)
 98 
 99   value
100 end
option_grpc_compression(value)
[show source]
   # File lib/httpx/plugins/grpc.rb
77 def option_grpc_compression(value)
78   case value
79   when true, false
80     value
81   else
82     value.to_s
83   end
84 end
option_grpc_deadline(value)
[show source]
   # File lib/httpx/plugins/grpc.rb
90 def option_grpc_deadline(value)
91   raise TypeError, ":grpc_deadline must be positive" unless value.positive?
92 
93   value
94 end
option_grpc_rpcs(value)
[show source]
   # File lib/httpx/plugins/grpc.rb
86 def option_grpc_rpcs(value)
87   Hash[value]
88 end
option_grpc_service(value)
[show source]
   # File lib/httpx/plugins/grpc.rb
73 def option_grpc_service(value)
74   String(value)
75 end