Get a list of all documents for given library
documentation:get_library_documents(STRING library)
documentation:get_library_documents('http')
#=> [
#=> "http:get" => [
#=> "purpose" => "Send a GET request to a URL\n",
#=> "tags" => "\n",
#=> "access" => "private\n",
#=> "sunsed?" => TRUE,
#=> "stable?" => FALSE,
#=> "cache" => "0\n",
#=> "schedule" => "\n",
#=> "examples" => "\n\nhttp:get('https://status.sunsed.com')\n#> [\n#> \"body\" => \"{\\n \\\"comment\\\": \\\"Average uptime is for the past 30 days. Please follow our twitter feed @SunSedApp for updates.\\\",\\n \\\"overal-status\\\": \\\"up\\\",\\n \\\"last-check\\\": 1569971153,\\n \\\"systems\\\": {\\n \\\"cdn.sunsed.com\\\": {\\n \\\"status\\\": \\\"up\\\",\\n \\\"uptime\\\": 100\\n },\\n \\\"image-api\\\": {\\n \\\"status\\\": \\\"up\\\",\\n \\\"uptime\\\": 100\\n },\\n \\\"mars.sunsed.com\\\": {\\n \\\"status\\\": \\\"up\\\",\\n \\\"uptime\\\": 100\\n },\\n \\\"venus.sunsed.com\\\": {\\n \\\"status\\\": \\\"up\\\",\\n \\\"uptime\\\": 100\\n },\\n \\\"www.sunsed.com\\\": {\\n \\\"status\\\": \\\"up\\\",\\n \\\"uptime\\\": 100\\n }\\n }\\n}\",\n#> \"header\" => [\n#> \"Expires\" => \"Tue, 01 Oct 2019 23:07:53 GMT\",\n#> \"Cache-Control\" => \"public\",\n#> \"Content-Type\" => \"application/json\",\n#> \"X-Cloud-Trace-Context\" => \"d5868ee07023ab01dbe8833216f67452\",\n#> \"Date\" => \"Tue, 01 Oct 2019 23:05:53 GMT\",\n#> \"Server\" => \"Google Frontend\",\n#> \"Content-Length\" => \"658\"\n#> ],\n#> \"info\" => [\n#> \"url\" => \"https://status.sunsed.com/\",\n#> \"content_type\" => \"application/json\",\n#> \"header_size\" => 254,\n#> \"request_size\" => 56,\n#> \"ssl_verify_result\" => FALSE,\n#> \"redirect_count\" => 0,\n#> \"total_time\" => 0.546717,\n#> \"namelookup_time\" => 0.012371,\n#> \"connect_time\" => 0.016332,\n#> \"pretransfer_time\" => 0.10679000000000005,\n#> \"size_upload\" => 0.0,\n#> \"size_download\" => 658.0,\n#> \"speed_download\" => 1203.0,\n#> \"speed_upload\" => 0.0,\n#> \"download_content_length\" => 658.0,\n#> \"upload_content_length\" => -1.0,\n#> \"redirect_time\" => 0.0,\n#> \"redirect_url\" => \"\",\n#> \"primary_ip\" => \"108.177.112.121\",\n#> \"certinfo\" => [],\n#> \"primary_port\" => 443,\n#> \"http_version\" => 2,\n#> \"protocol\" => 2,\n#> \"scheme\" => \"HTTPS\"\n#> ],\n#> \"http_status_code\" => 200,\n#> \"ok?\" => TRUE\n#> ]\n\n#===\nhttp:get('https://status.sunsed.com')\n#=> ERROR: uncaught_error_on_sunsed_l648 -- strlen() expects parameter 1 to be string, array given /var/lib/nginx/sunsed/SunSed/_/http.php 325\n\n"
#=> ],
#=> "http:head" => [
#=> "purpose" => "Send HEAD request to a URL\n",
#=> "tags" => "\n",
#=> "access" => "private\n",
#=> "sunsed?" => TRUE,
#=> "stable?" => FALSE,
#=> "cache" => "0\n",
#=> "schedule" => "\n",
#=> "examples" => "\n\n# note: you can use this function to quickly get information about the response without the time consuming part to get the body.\n\nhttp:head('https://status.sunsed.com')\n#=> [\n#=> \"body\" => \"\",\n#=> \"header\" => [\n#=> \"Expires\" => \"Wed, 02 Oct 2019 18:02:58 GMT\",\n#=> \"Cache-Control\" => \"public\",\n#=> \"Content-Type\" => \"application/json\",\n#=> \"X-Cloud-Trace-Context\" => \"b16d3f98712174209eac459b4ddde6c4;o=1\",\n#=> \"Date\" => \"Wed, 02 Oct 2019 18:00:59 GMT\",\n#=> \"Server\" => \"Google Frontend\",\n#=> \"Transfer-Encoding\" => \"chunked\"\n#=> ],\n#=> \"info\" => [\n#=> \"url\" => \"https://status.sunsed.com/\",\n#=> \"content_type\" => \"application/json\",\n#=> \"header_size\" => 265,\n#=> \"request_size\" => 57,\n#=> \"ssl_verify_result\" => FALSE,\n#=> \"redirect_count\" => 0,\n#=> \"total_time\" => 0.497651,\n#=> \"namelookup_time\" => 0.060852,\n#=> \"connect_time\" => 0.062564,\n#=> \"pretransfer_time\" => 0.148715,\n#=> \"size_upload\" => 0.0,\n#=> \"size_download\" => 0.0,\n#=> \"speed_download\" => 0.0,\n#=> \"speed_upload\" => 0.0,\n#=> \"download_content_length\" => -1.0,\n#=> \"upload_content_length\" => -1.0,\n#=> \"redirect_time\" => 0.0,\n#=> \"redirect_url\" => \"\",\n#=> \"primary_ip\" => \"172.217.214.121\",\n#=> \"certinfo\" => [],\n#=> \"primary_port\" => 443,\n#=> \"http_version\" => 2,\n#=> \"protocol\" => 2,\n#=> \"scheme\" => \"HTTPS\"\n#=> ],\n#=> \"http_status_code\" => 200,\n#=> \"ok?\" => TRUE\n#=> ]\n\n#=== \nhttp:head('https://status.g.com')\n#=> ERROR: domain_not_whitelisted -- The domain name (g.com) is not whitelisted on SunSed. Contact support and request the domain to be whitelisted.\n\n"
#=> ],
#=> "http:post" => [
#=> "purpose" => "Send a POST request to a URL\n",
#=> "tags" => "\n",
#=> "access" => "private\n",
#=> "sunsed?" => TRUE,
#=> "stable?" => FALSE,
#=> "cache" => "0\n",
#=> "schedule" => "\n",
#=> "examples" => "\n\nhttp:post('https://status.sunsed.com')\n#=> ERROR: uncaught_error_on_sunsed_l648 -- strlen() expects parameter 1 to be string, array given /var/lib/nginx/sunsed/SunSed/_/http.php 318\n"
#=> ],
#=> "http:put" => [
#=> "purpose" => "Send a PUT request to a URL\n",
#=> "tags" => "\n",
#=> "access" => "private\n",
#=> "sunsed?" => TRUE,
#=> "stable?" => FALSE,
#=> "cache" => "0\n",
#=> "schedule" => "\n",
#=> "examples" => "\n\nhttp:put('https://status.sunsed.com', 'hi this is interesting')\n#=> [\n#=> \"body\" => \"\",\n#=> \"header\" => [],\n#=> \"info\" => [\n#=> \"url\" => \"https://status.sunsed.com/\",\n#=> \"content_type\" => NULL,\n#=> \"header_size\" => 0,\n#=> \"request_size\" => 0,\n#=> \"ssl_verify_result\" => TRUE,\n#=> \"redirect_count\" => 0,\n#=> \"total_time\" => 0.066148,\n#=> \"namelookup_time\" => 0.004382,\n#=> \"connect_time\" => 0.015673,\n#=> \"pretransfer_time\" => 0.0,\n#=> \"size_upload\" => 0.0,\n#=> \"size_download\" => 0.0,\n#=> \"speed_download\" => 0.0,\n#=> \"speed_upload\" => 0.0,\n#=> \"download_content_length\" => -1.0,\n#=> \"upload_content_length\" => -1.0,\n#=> \"redirect_time\" => 0.0,\n#=> \"redirect_url\" => \"\",\n#=> \"primary_ip\" => \"2607:f8b0:4007:800::2013\",\n#=> \"certinfo\" => [],\n#=> \"primary_port\" => 443\n#=> ],\n#=> \"http_status_code\" => 0,\n#=> \"ok?\" => FALSE,\n#=> \"size\" => 47\n#=> ]\n"
#=> ],
#=> "http:request" => [
#=> "purpose" => "Send HTTP requests\n",
#=> "tags" => "curl, fetch, remote\n",
#=> "access" => "private\n",
#=> "sunsed?" => TRUE,
#=> "stable?" => FALSE,
#=> "cache" => "0\n",
#=> "schedule" => "\n",
#=> "examples" => "\n\nhttp:request(\"GET\", \"https://priv_key@api.stripe.com/v1/balance\")\n#=> [\n#=> \"body\" => \"{\\n \\\"object\\\": \\\"balance\\\",\\n \\\"available\\\": [\\n {\\n \\\"amount\\\": 0,\\n \\\"currency\\\": \\\"usd\\\",\\n \\\"source_types\\\": {\\n \\\"card\\\": 0\\n }\\n }\\n ],\\n \\\"livemode\\\": false,\\n \\\"pending\\\": [\\n {\\n \\\"amount\\\": 0,\\n \\\"currency\\\": \\\"usd\\\",\\n \\\"source_types\\\": {\\n \\\"card\\\": 0\\n }\\n }\\n ]\\n}\\n\",\n#=> \"header\" => [\n#=> \"Server\" => \"nginx\",\n#=> \"Date\" => \"Wed, 03 Jun 2020 20:38:51 GMT\",\n#=> \"Content-Type\" => \"application/json\",\n#=> \"Content-Length\" => \"301\",\n#=> \"Connection\" => \"keep-alive\",\n#=> \"access-control-allow-credentials\" => \"true\",\n#=> \"access-control-allow-methods\" => \"GET, POST, HEAD, OPTIONS, DELETE\",\n#=> \"access-control-allow-origin\" => \"*\",\n#=> \"access-control-expose-headers\" => \"Request-Id, Stripe-Manage-Version, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required\",\n#=> \"access-control-max-age\" => \"300\",\n#=> \"cache-control\" => \"no-cache, no-store\",\n#=> \"request-id\" => \"req_1TeiPx3VKEVfAw\",\n#=> \"stripe-version\" => \"2018-09-24\",\n#=> \"Strict-Transport-Security\" => \"max-age=31556926; includeSubDomains; preload\"\n#=> ],\n#=> \"info\" => [\n#=> \"url\" => \"https://priv_key@api.stripe.com/v1/balance\",\n#=> \"content_type\" => \"application/json\",\n#=> \"header_size\" => 618,\n#=> \"request_size\" => 130,\n#=> \"ssl_verify_result\" => FALSE,\n#=> \"redirect_count\" => 0,\n#=> \"total_time\" => 0.194632,\n#=> \"namelookup_time\" => 0.006374,\n#=> \"connect_time\" => 0.027582,\n#=> \"pretransfer_time\" => 0.08046,\n#=> \"size_upload\" => 0.0,\n#=> \"size_download\" => 301.0,\n#=> \"speed_download\" => 1551.0,\n#=> \"speed_upload\" => 0.0,\n#=> \"download_content_length\" => 301.0,\n#=> \"upload_content_length\" => -1.0,\n#=> \"redirect_time\" => 0.0,\n#=> \"redirect_url\" => \"\",\n#=> \"primary_ip\" => \"52.25.214.31\",\n#=> \"certinfo\" => [],\n#=> \"primary_port\" => 443\n#=> ],\n#=> \"http_status_code\" => 200,\n#=> \"ok?\" => TRUE,\n#=> \"size\" => 684\n#=> ]\n\n"
#=> ],
#=> "http:is_valid_domain?" => [
#=> "purpose" => "Question whether given domain is valid\n",
#=> "tags" => "\n",
#=> "access" => "private\n",
#=> "sunsed?" => TRUE,
#=> "stable?" => FALSE,
#=> "cache" => "0\n",
#=> "schedule" => "\n",
#=> "examples" => "\n\nhttp:is_valid_domain?(\"sunsed.com\")\n#=> TRUE\n"
#=> ]
#=> ]
Copyright ©2013-2022 SunSed®. All rights reserved.