Skip to content

Mini-Microservices/ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Ping microservice

A small microservice to ping a given url and return the status code.

Usage - JS

var formdata = new FormData();
formdata.append("url", "https://google.com.au");

var requestOptions = {
  method: 'POST',
  body: formdata
};

fetch("https://next-ping.vercel.app/api/ping", requestOptions)
  .then(response => response.json())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
{
  "code": "200",
  "url": "https://google.com.au"
}

About

API written in Go to send a simple ping to a website and return the status code

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published