8000 GitHub - sixcolors/helmet: 🧬 Helmet middleware for Fiber
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sixcolors/helmet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helmet

Release Discord Test Security Linter

Install

go get -u github.com/gofiber/fiber/v2
go get -u github.com/gofiber/helmet/v2

Example

package main

import (
  "github.com/gofiber/fiber/v2"
  "github.com/gofiber/helmet/v2"
)

func main() {
  app := fiber.New()

  app.Use(helmet.New())

  app.Get("/", func(c *fiber.Ctx) error {
    return c.SendString("Welcome!")
  })

  app.Listen(":3000")
}

Test

curl -I http://localhost:3000

About

🧬 Helmet middleware for Fiber

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%
0