Skip to content
Browse files

Added more documentation

  • Loading branch information...
1 parent a2adb21 commit 22b81b78bc7a843ee6b3f1439c02295913740d88 @azawawi committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/Net/Curl.pm6
View
9 lib/Net/Curl.pm6
@@ -10,32 +10,35 @@ constant LIB = 'libcurl.so';
constant CURLOPT_URL is export = 10002;
constant CURLE_OK is export = 0;
-
+# Start a libcurl easy session
sub curl_easy_init()
returns OpaquePointer
is native(LIB)
is export { ... };
+# End a libcurl easy session
sub curl_easy_cleanup(OpaquePointer)
is native(LIB)
is export { ... };
+# Set options for a curl easy handle
sub curl_easy_setopt(OpaquePointer, int, Str)
is native(LIB)
is export { ... };
+# Perform a file transfer
sub curl_easy_perform(OpaquePointer)
returns int
is native(LIB)
is export { ... };
-# Returns the string describing error code
+# Return the string describing error code
sub curl_easy_strerror(int)
returns Str
is native(LIB)
is export { ... };
-# Returns the libcurl version string
+# Return the libcurl version string
sub curl_easy_version()
returns Str
is native(LIB)

0 comments on commit 22b81b7

Please sign in to comment.
Something went wrong with that request. Please try again.