Skip to content

williamherry/jquery.ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

给指定的url发一个"GET"请求来检测一下服务是否存活,接受两个参数:

url: 要发请求的url,默认为"/ping"
expect: 期望这个url返回的数据,默认为"pong"

如果期望的返回值和实际返回相同,返回true

About

ping a url and return boolean based on result

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published