This software is currently in development and is not yet production-ready.
Please be aware that features may change, and the application may contain bugs or incomplete functionality. Use at your own risk, and feel free to contribute or provide feedback!
Welcome to FNS, a high-performance HTTP server designed to meet the demands of modern web applications. Built on the robust foundations of fasthttp, FNS offers enhanced compatibility with HTTP/2.0 and provides unbuffered responses for superior performance.
- Blazing Fast Performance: Experience lightning-fast request processing.
- HTTP/2.0 Compatibility: Full support for the latest HTTP protocol.
- Unbuffered Responses: Real-time data delivery without buffering.
- Ease of Use: Simple API designed for developers.
- Scalability: Efficient resource management for handling large volumes of traffic.
Get started with FNS in just a few steps.
Ensure you have Go installed on your machine. Download Go
go get -u github.com/pablolagos/fns
Setting up a basic FNS server is straightforward. Here's a quick example:
package main
import (
"github.com/pablolagos/fns"
"log"
)
func main() {
fns.Get("/hello", func(ctx *fns.RequestCtx) {
ctx.WriteString("Hello, World!")
})
log.Println("Starting server on :8080")
if err := fns.ListenAndServe(":8080", nil); err != nil {
log.Fatalf("Error starting server: %s", err)
}
}
Detailed documentation is available on our wiki. Here are some quick links to get you started:
- Getting Started
- HTTP/2.0 Setup
- Examples
We welcome contributions from the community! Please read our Contributing Guidelines to get started.
FNS is licensed under the MIT License. See the LICENSE file for more details.
FNS is based on the incredible work done by FastHTTP created by Aliaksandr Valialkin, VertaMedia, Kirill Danshin, Erik Dubbelboer and all FastHTTP Authors.
Made with ❤️ for a faster web.