Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fastglue is an opinionated, bare bones wrapper that glues together fasthttp and fasthttprouter to act as a micro HTTP framework.

License

NotificationsYou must be signed in to change notification settings

zerodha/fastglue

Repository files navigation

OverviewGo ReferenceZerodha Tech

fastglue is an opinionated, bare bones wrapper that glues togetherfasthttpandfasthttprouter to act as a micro HTTP framework. It helps eliminateboilerplate that would otherwise be required when using these two libraries towrite HTTP servers. It enables:

  • Performance benefits of fasthttp + fasthttprouter.
  • Pre/post middleware hooks on HTTP handlers.
  • Simple middlewares for validating (existence, length range) of params in HTTPrequests.
  • Functions for unmarshalling request payloads (Form encoding, JSON, XML) intoarbitrary structs.
  • Shortcut functions for registering handlers,GET(),POST() etc.
  • Shortcut for fasthttp listening on TCP and Unix sockets.
  • Shortcut for graceful shutdown hook on the fasthttp server.
  • Opinionated JSON API response and error structures.
  • Shortcut functions for sending strings, bytes, JSON in the envelope structurewithout serialization or allocation.

Install

go get -u github.com/zerodha/fastglue

Usage

import"github.com/zerodha/fastglue"

Examples

About

Fastglue is an opinionated, bare bones wrapper that glues together fasthttp and fasthttprouter to act as a micro HTTP framework.

Topics

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp