Std.Tls
18 public declarations
- close
&Std.Tls.Secured -> Result[(), Std.Tls.TlsError]Close a connection, telling the far end it ended.
- closeWithin
&Std.Tls.Secured -> Int -> Result[(), Std.Tls.TlsError]Close a connection, bounding the protocol goodbye before the socket closes.
- connect
Str -> Int -> Result[Std.Tls.Secured, Std.Tls.TlsError]Open a connection and prove the far end is the host that was named.
- connectWithin
Str -> Int -> Int -> Result[Std.Tls.Secured, Std.Tls.TlsError]Open and verify a connection within the stated milliseconds.
- foldChunks
&Std.Tls.Secured -> T -> fn(T, Bytes) -> T -> Result[T, Std.Tls.TlsError]Combine everything the far end sends into one value, holding one chunk at a
- peerOf
&Std.Tls.Secured -> Result[Str, Std.Tls.TlsError]The host this connection was opened against, which is the name that was
- receive
&Std.Tls.Secured -> Int -> Result[Option[Bytes], Std.Tls.TlsError]The next bytes, or nothing when the far end has finished.
- receiveAll
&Std.Tls.Secured -> Result[Bytes, Std.Tls.TlsError]Everything the far end sends until it finishes, joined once rather than
- receiveUntil
&Std.Tls.Secured -> &Bytes -> Int -> Result[(Bytes, Bytes), Std.Tls.TlsError]Read until a marker arrives, answering what came before it and what came
- receiveWithin
&Std.Tls.Secured -> Int -> Int -> Result[Option[Bytes], Std.Tls.TlsError]Read the next bytes within the stated milliseconds.
- Secured
A connection whose contents only the two ends can read.
- send
&Std.Tls.Secured -> &Bytes -> Result[(), Std.Tls.TlsError]Send bytes, and keep sending until every one has gone.
- sendText
&Std.Tls.Secured -> Str -> Result[(), Std.Tls.TlsError]Send text, as its UTF-8 encoding.
- sendTextWithin
&Std.Tls.Secured -> Str -> Int -> Result[(), Std.Tls.TlsError]Send text within the stated milliseconds.
- sendWithin
&Std.Tls.Secured -> &Bytes -> Int -> Result[(), Std.Tls.TlsError]Send bytes within the stated milliseconds.
- TlsError
Why a secured connection did not do what it was asked.
- upgradeWithin
&Std.Net.Connection -> Str -> Int -> Result[Std.Tls.Secured, Std.Tls.TlsError]Consume a plain connection at an agreed TLS boundary, verifying the host.
- withConnection
Str -> Int -> fn(Std.Tls.Secured) -> Result[T, Std.Tls.TlsError] -> Result[T, Std.Tls.TlsError]Open a connection, hand it to an action, and close it however the action
