MITM::Context
Inherits Reference / Object
Constructors
new(rootCertificate : String = String.new, rootPrivateKey : String = String.new, capacity : Int32 | Nil = 1024)
SourceClass methods
create_client(verify_mode = OpenSSL::SSL::VerifyMode::NONE, &block : Context -> )
Sourcecreate_client(verify_mode = OpenSSL::SSL::VerifyMode::NONE)
Sourcefrom_path(rootCertificate : String, rootPrivateKey : String, &block : Context -> )
Sourcefrom_path(rootCertificate : String, rootPrivateKey : String)
SourceInstance methods
cache
Sourcecache=(cache : Cache)
Sourcecountry
Sourcecountry=(country : String)
Sourcecreate_all(request : HTTP::Request, verify_mode = OpenSSL::SSL::VerifyMode::NONE, &block : Context -> )
Sourcecreate_context(hostname : String = self.hostName)
Sourcecreate_context(request : HTTP::Request)
Sourcecreate_context_from_cache(value : Tuple(String, String))
Sourcecreate_root_context
Sourcecreate_server(request : HTTP::Request, &block : Context -> )
Sourcecreate_server(request : HTTP::Request)
SourcehostName
SourcehostName=(hostName : String)
Sourcelocation
Sourcelocation=(location : String)
SourcenotAfter
SourcenotAfter=(notAfter : Int64)
SourcenotBefore
SourcenotBefore=(notBefore : Int64)
SourcerootCertificate
SourcerootPrivateKey
Source