Class: GELF::Transport::HTTPS

Inherits:
HTTP
  • Object
show all
Defined in:
lib/gelf/transport/https.rb

Instance Method Summary collapse

Methods inherited from HTTP

#default_headers, #start_connection, #transfer

Constructor Details

#initialize(host, port: 443, path: nil, headers: nil) ⇒ HTTPS

Returns a new instance of HTTPS.



4
5
6
7
8
# File 'lib/gelf/transport/https.rb', line 4

def initialize(host, port: 443, path: nil, headers: nil)
  @uri = URI::HTTPS.build host: host, port: port
  @headers = headers
  @path = path
end