Skip to content

Commit

Permalink
fix &tcpc and &tlsc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 10, 2024
1 parent 2167d66 commit cf814a9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,12 @@ sys_op! {
/// Returns a stream handle
/// You can make a request with [&w] and read the response with [&rs], [&rb], or [&ru].
/// [under][&tcpc] calls [&cl] automatically.
/// ex: "GET / HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n"
/// : ⍜(&tlsc "example.com:443"|&rs∞⊸&w:)
/// ex: $ GET / HTTP/1.1
/// : $ Host: example.com
/// : $ Connection: close
/// : $
/// : $
/// : ⍜(&tcpc "example.com:80"|&rs∞⊸&w:)
///
/// See also: [&tlsc]
(1, TcpConnect, Tcp, "&tcpc", "tcp - connect", Mutating),
Expand All @@ -459,7 +463,12 @@ sys_op! {
/// Returns a stream handle
/// You can make a request with [&w] and read the response with [&rs], [&rb], or [&ru].
/// [under][&tlsc] calls [&cl] automatically.
/// ex:
/// ex: $ GET / HTTP/1.1
/// : $ Host: example.com
/// : $ Connection: close
/// : $
/// : $
/// : ⍜(&tlsc "example.com:443"|&rs∞⊸&w:)
///
/// See also: [&tcpc]
(1, TlsConnect, Tcp, "&tlsc", "tls - connect", Mutating),
Expand Down

0 comments on commit cf814a9

Please sign in to comment.