falcon/hackney
Types
pub type CrlCacheOptions {
SslCrlCache(SslCrlCacheOptions)
}
Constructors
-
SslCrlCache(SslCrlCacheOptions)
pub type CrlCheckMode {
Peer
}
Constructors
-
Peer
pub type Error {
InvalidUtf8Response
Other(Dynamic)
}
Constructors
-
InvalidUtf8Response
-
Other(Dynamic)
pub type HackneyOption {
Async
FollowRedirect(Bool)
MaxConnections(Int)
MaxRedirect(Int)
SSLOptions(List(SSLOption))
Timeout(Int)
WithBody(Bool)
}
Constructors
-
Async
You probably DO NOT want to use this option. It is only here for compatibility
-
FollowRedirect(Bool)
-
MaxConnections(Int)
-
MaxRedirect(Int)
-
SSLOptions(List(SSLOption))
-
Timeout(Int)
-
WithBody(Bool)
pub type SSLOption {
Cacertfile(String)
CrlCheck(CrlCheckMode)
CrlCache(CrlCacheOptions)
Verify(SSLVerifyMode)
Versions(List(String))
}
Constructors
-
Cacertfile(String)
-
CrlCheck(CrlCheckMode)
-
CrlCache(CrlCacheOptions)
-
Verify(SSLVerifyMode)
-
Versions(List(String))
pub type SSLVerifyMode {
VerifyNone
VerifyPeer
VerifyPeerStrict
}
Constructors
-
VerifyNone
-
VerifyPeer
-
VerifyPeerStrict
pub type SslCrlCacheOptions {
Internal(List(SslCrlInternalCacheOptions))
}
Constructors
-
Internal(List(SslCrlInternalCacheOptions))
pub type SslCrlInternalCacheOptions {
Http(Int)
}
Constructors
-
Http(Int)
Functions
pub fn send(
request req: Request(String),
options options: List(HackneyOption),
) -> Result(Response(String), Error)