Skip to content

Status

Use SendStatus() to send the status of the response.

lib/handlers/welcome.go
package handlers
import "github.com/razshare/frizzante/connections"
func Welcome(connection *connections.Connection) {
connection.SendStatus(404) // Sends status 404.
connection.SendMessage("Not found.") // Sends text.
}