Skip to content

Header

Use ReceiveHeader() to retrieve header fields and SendHeader() to send them.

lib/handlers/hello.go
package handlers
import "github.com/razshare/frizzante/frz"
func Hello(c *frz.Connection) {
ctype := c.ReceiveHeader("Accept") // Retrieves field "Accept".
c.SendHeader("Content-Type", ctype) // Sends it back.
}