struct Presto::ConnectionOptions

Overview

ConnectionOptions manages all of the header information for the HTTP::Client. This struct will silently drop any options that arent part of the valid connection options for presto. We've got the mapping the way that it is to make constructing a URI and working with the options a bit easier

Defined in:

presto/connection.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(uri : URI) #

This is used in situations where we're parsing the params from the database uri.


[View source]
def self.new #

[View source]

Instance Method Detail

def [](key) #

[View source]
def []=(key, value : Int32) #

[View source]
def []=(key, value) #

[View source]
def []?(key) #

[View source]
def has_key?(key) #

[View source]
def http_headers #

[View source]
def statement_timeout : Time::Span #

[View source]