Documentation ¶
Overview ¶
VanityServer implements an HTTP.Handler that redirects HTTP requests to projects hosted on sourcehut. Example usage:
import ( "net/http" "ben.gmbh/sourcehut-vanity/vanityserver" ) func main() { http.ListenAndServe(port, vanityserver.VanityServer{Username: "blowry"}) }
SPDX-License-Identifier: GPL-3.0-or-later
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VanityServer ¶
func (VanityServer) ServeHTTP ¶
func (server VanityServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.