0.0.12 • Published 10 years ago

httpsify v0.0.12

Weekly downloads
3
License
ISC
Repository
github
Last release
10 years ago

Checks a given API endpoint to make sure it's not blocked by a network, and returns either a secure, or unsecure API url. It works by pinging the okEndpoint a GET, and waiting for a 20x level response.

Features

  • caches SSL support for 1 day
  • times out after 8 seconds

Example

var httpsify = require("httpsify");

httpsify("/api", "http://api.domain.com/api/", function (url) {
  console.log("https://api.domain.com/api");
});

httpsify(okEndpoint, url, callback)

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago