package httpping
import "github.com/libp2p/go-libp2p/p2p/http/ping"
Index ¶
Constants ¶
const PingProtocolID = "/http-ping/1"
Functions ¶
func SendPing ¶
SendPing send an ping request over HTTP. The provided client should be namespaced to the Ping protocol.
Types ¶
type Ping ¶
type Ping struct{}
func (Ping) ServeHTTP ¶
func (Ping) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler.
Source Files ¶
- Version
- v0.41.1 (latest)
- Published
- Mar 24, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 3 weeks ago –
Tools for package owners.