abstract class GeminiServer::UriHandler

Direct Known Subclasses

Defined in:

gemini_server/uri_handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(vhost_config : GeminiServer::VirtualHostConfig) #

[View source]

Instance Method Detail

abstract def can_handle?(uri : URI) : Bool #

[View source]
def document_root : String #

[View source]
def enable_dir_listing : Bool #

[View source]
abstract def handle(document_root : Path, uri : URI, config : GeminiServer::Config) : GeminiServer::Reply::Base #

[View source]
def matches_hostname?(uri : URI) : Bool #

[View source]
def vhosts : Array(String) #

[View source]