class NNTP::Client

Included Modules

Defined in:

nntp-client/version.cr
nntp/client.cr

Constant Summary

VERSION = "1.0.2"

Instance Method Summary

Instance methods inherited from module NNTP::ConnectionContext

discard(connection : Connection) discard, release(connection : Connection) release, uri : URI uri

Instance Method Detail

def checkout #

returns a connection from the pool the returned connection must be returned to the pool by explictly calling Connection#release


[View source]
def close #

Closes all connection to the database.


[View source]
def connection_pool_options(params : URI::Params) #

[View source]
def setup_connection(&proc : Connection -> Nil) #

[View source]
def uri : URI #

Returns the uri with the connection settings to the server


[View source]
def using_connection(&) #

yields a connection from the pool the connection is returned to the pool when the block ends


[View source]