Skip to content

v0.6.0

Choose a tag to compare

@eularix eularix released this 22 Jun 06:24
· 6 commits to main since this release

gorilla/mux and WebSocket.

  • gorilla/mux: r.HandleFunc("/path", h).Methods("GET") is detected, with the method from the chained .Methods(...) (ANY otherwise) — gorilla doesn't use the r.GET(...) shape the generic router extractor covers.
  • WebSocket: a route handler that performs a WebSocket upgrade (gorilla/websocket Upgrade, coder/nhooyr Accept) is labeled WS instead of GET. Per-message routing after the upgrade is dynamic and stays out of scope.
  • New examples/gorilla-ws (real gorilla/mux + gorilla/websocket).
go get github.com/eularixs/archview@v0.6.0