class MITM::Context

Defined in:

cherry/mitm/context.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(rootCertificate : String = String.new, rootPrivateKey : String = String.new, capacity : Int32 | Nil = 1024) #

[View source]

Class Method Detail

def self.create_client(verify_mode = OpenSSL::SSL::VerifyMode::NONE, &block : Context -> ) #

[View source]
def self.create_client(verify_mode = OpenSSL::SSL::VerifyMode::NONE) #

[View source]
def self.from_path(rootCertificate : String, rootPrivateKey : String, &block : Context -> ) #

[View source]
def self.from_path(rootCertificate : String, rootPrivateKey : String) #

[View source]

Instance Method Detail

def cache : Cache #

[View source]
def cache=(cache : Cache) #

[View source]
def country : String #

[View source]
def country=(country : String) #

[View source]
def create_all(request : HTTP::Request, verify_mode = OpenSSL::SSL::VerifyMode::NONE, &block : Context -> ) #

[View source]
def create_context(hostname : String = self.hostName) #

[View source]
def create_context(request : HTTP::Request) #

[View source]
def create_context_from_cache(value : Tuple(String, String)) #

[View source]
def create_root_context : Tuple(String, String) #

[View source]
def create_server(request : HTTP::Request, &block : Context -> ) #

[View source]
def create_server(request : HTTP::Request) #

[View source]
def hostName : String #

[View source]
def hostName=(hostName : String) #

[View source]
def location : String #

[View source]
def location=(location : String) #

[View source]
def notAfter : Int64 #

[View source]
def notAfter=(notAfter : Int64) #

[View source]
def notBefore : Int64 #

[View source]
def notBefore=(notBefore : Int64) #

[View source]
def rootCertificate : String #

[View source]
def rootPrivateKey : String #

[View source]