class Ngrok
- Ngrok
- Reference
- Object
Defined in:
ngrok.crngrok/downloader.cr
ngrok/version.cr
Constant Summary
-
Log =
::Log.for("ngrok")
-
VERSION =
"0.3.0"
Constructors
Class Method Summary
- .auth(token, use_local_executable = true, bin_path = "./bin")
- .binary_path(use_local_executable = true, bin_dir = "./bin")
- .download_ngrok(bin_path)
- .start(**params)
- .start(**params, &)
Instance Method Summary
- #addr : String
- #config : String | Nil
- #errored?
- #fetch_urls
- #finalize
- #hostname : String | Nil
-
#inspect : Bool
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
- #ngrok_bin : String
- #ngrok_exec_params
- #region : String
- #running?
- #start
- #status : Status
- #stop
- #stopped?
- #subdomain : String | Nil
- #timeout : Time::Span
- #url : String | Nil
- #url? : String | Nil | Nil
- #url_https : String | Nil
- #url_https? : String | Nil | Nil
- #use_local_executable : Bool
Constructor Detail
def self.new(addr : String = "127.0.0.1:3001", subdomain : Nil | String = nil, hostname : Nil | String = nil, timeout : Time::Span = 10.seconds, inspect : Bool = false, region : String = "us", config : Nil | String = nil, use_local_executable : Bool = true, ngrok_bin : String = "./bin")
#
Class Method Detail
Instance Method Detail
def inspect : Bool
#
Description copied from class Object
Returns an unambiguous and information-rich string representation of this object, typically intended for developers.
This method should usually not be overridden. It delegates to
#inspect(IO)
which can be overridden for custom implementations.
Also see #to_s
.