struct

GRPC::Endpoint

Inherits Struct < Value < Object

Endpoint describes where a client channel connects. It encapsulates host/port/TLS derived from an address string.

Constructors

new(host : String, port : Int32, tls : Bool = false)
Source
parse(address : String) : Endpoint

Parse common endpoint forms:

  • host:port
  • http://host:port
  • https://host:port
  • host (defaults: 50051 for plain, 443 for TLS)
Source

Instance methods

host
Source
port
Source
tls?
Source
to_address
Source