httpkit

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 0 Imported by: 0

README

httpkit

Go Reference Go Report Card CI

httpkit covers both sides of HTTP in Go services. httpkit/server builds an echo v4 server where every response, error and log line has the same shape. You get a JSON envelope with a trace id, errors mapped to status codes through sentinels, masked access logs, body limits, panic recovery and pagination helpers. httpkit/client is a fluent client on top of net/http with the settings that are easy to get wrong. It shares a tuned connection pool, retries with backoff and Retry-After, and has per-call and per-attempt timeouts, response size limits, streaming JSON decoding and per-attempt observers.

Contents

Features

server (github.com/boostgo/httpkit/server)

  • One builder (NewHandler(logger)...Build()) that returns a ready *echo.Echo.
  • Envelopes: {"status":"Success","status_code":200,"body":…,"request_id":…} and {"status":"Failure","status_code":404,"message":…,"code":"not_found","params":[…],"request_id":…}.
  • Sentinel errors: return fmt.Errorf("%w: …", server.ErrNotFound) from a handler and the client gets a 404 envelope. 40+ sentinels cover every 4xx/5xx status.
  • Trace id per request (X-Trace-Id, generated when missing). It is added to the context, the logs, the envelope and the error headers.
  • Access log (zerolog) of method, URL, status, error and a body prefix. The values of password, client_secret, token, msisdn and your own keys are masked.
  • Request body limit (10 MiB by default). Larger requests get 413 and the envelope.
  • Hidden error details: the client only sees the top sentinel, and the full error stays in the log.
  • Panic recovery that never writes a second body into a response that has already started.
  • Parse (bind and validate with go-playground/validator), File, ParseForm, HeadersMap, CookiesMap.
  • Pagination: PageParams.Normalize, CursorPage and OffsetPage response fields, and MaxPages.
  • CacheMiddleware with your own backend, cookie builder, raw (no-envelope) routes, and Config/SwaggerConfig for configuration files.

client (github.com/boostgo/httpkit/client)

  • Fluent Client → Request API: base URL, headers, cookies, query params (single and multi value), basic and bearer auth.
  • Shared, tuned connection pool (keep-alive, 128 idle connections per host, idle timeout, 60 s response-header timeout). It is never rebuilt per request.
  • RetryPolicy: retries transport errors and 429/502/503/504 with exponential backoff and jitter. It respects Retry-After and retries only idempotent methods unless you allow others. Waits can be cancelled through the context.
  • WithTimeout covers the whole call and WithAttemptTimeout covers one attempt.
  • WithResult(&v) decodes the JSON body straight from the connection. Response.JSON and Response.Err() return a typed *HTTPError for non-2xx responses.
  • WithMaxResponseSize protects you from very large responses.
  • Bodies: structs as JSON, NewFormData (multipart), NewFormUrlEncodedWriter, NewBytesWriter, Raw(bytes|reader, contentType). Bodies are replayed on retries.
  • WithObserver runs after every attempt, including transport errors, which makes it a good place for metrics and tracing.
  • Requests can be reused safely, and goroutine leaks are checked in tests with goleak.

Install

go get github.com/boostgo/httpkit

Requires Go 1.23 or newer.

Quick start

Server: envelope and a paginated list
package main

import (
	"fmt"
	"net/http"
	"os"

	"github.com/labstack/echo/v4"
	"github.com/rs/zerolog"

	"github.com/boostgo/httpkit/server"
)

type User struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type UsersResponse struct {
	Users []User `json:"users"`
	server.OffsetPage // page, page_size, total, max_pages, next_cursor, has_more
}

func main() {
	logger := zerolog.New(os.Stdout).With().Timestamp().Logger()

	e := server.NewHandler(logger). // trace, CORS, recover, access log, 10 MiB body limit
		WithBodyLog(256, "email"). // log 256 bytes of the body, mask "email" too
		Build()

	e.GET("/users", func(ctx echo.Context) error {
		var params server.PageParams // ?page=2&page-size=50 or ?cursor=...
		if err := server.Parse(ctx, &params); err != nil {
			return server.Failure(ctx, http.StatusBadRequest, err)
		}
		page := params.Normalize() // page >= 1, size in [1, 1000], 20 by default

		users, total, err := repo.List(ctx.Request().Context(), page.Page, page.Size) // your storage
		if err != nil {
			return err // -> 500 {"status":"Failure","code":"internal",...}
		}

		return server.Ok(ctx, UsersResponse{
			Users: users,
			OffsetPage: server.OffsetPage{
				CursorPage: server.CursorPage{HasMore: int64(page.Page*page.Size) < total},
				Page:       page.Page,
				PageSize:   page.Size,
				Total:      total,
				MaxPages:   server.MaxPages(total, page.Size),
			},
		})
	})

	e.GET("/users/:id", func(ctx echo.Context) error {
		return fmt.Errorf("%w: user %s", server.ErrNotFound, ctx.Param("id")) // -> 404
	})

	_ = e.Start(":8080")
}
{"status":"Success","status_code":200,"body":{"users":[{"id":3,"name":"cid"},{"id":4,"name":"dan"}],"next_cursor":null,"has_more":true,"page":2,"page_size":2,"total":5,"max_pages":3},"request_id":"6b3d0186-e752-457d-9045-c8dcff9ca655"}
Client: GET with retry
package main

import (
	"context"
	"log"
	"time"

	"github.com/boostgo/httpkit/client"
)

type User struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

func main() {
	users := client.New(). // create once, reuse
		WithBaseURL("https://api.example.com").
		WithBearerToken("token").
		WithTimeout(10 * time.Second).       // whole call, retries included
		WithAttemptTimeout(2 * time.Second). // one attempt
		WithRetryPolicy(client.RetryPolicy{MaxAttempts: 4}) // GET retried on errors and 429/502/503/504

	var u User
	resp, err := users.R(context.Background()).
		WithResult(&u). // decode a 2xx JSON body into u
		GET("/users/42")
	if err != nil {
		log.Fatal(err) // transport error, timeout or retries exhausted
	}
	if err := resp.Err(); err != nil {
		log.Fatal(err) // non-2xx -> *client.HTTPError
	}
	log.Printf("%+v", u)
}

Runnable programs: examples/server, examples/client and examples/roundtrip, which runs a server and a client in one process.

Server

Responses
server.Ok(ctx, body)                       // 200 + envelope
server.Created(ctx, server.NewCreatedResponse(id)) // 201 {"body":{"id":…}}
server.Success(ctx, http.StatusAccepted, body)
server.NoContent(ctx)                      // 204, empty body
server.Failure(ctx, http.StatusConflict, err)
server.ReturnExcel(ctx, "report.xlsx", blob)
  • A nil body writes an empty string. A primitive body (int, string, bool, …) is written as plain text without the envelope.
  • server.RawMiddleware() on a route or group writes the body as plain JSON without the envelope. This is useful for webhooks and third-party consumers.
Errors and status codes

Every status from 400 to 511 has a sentinel (ErrBadRequest, ErrUnauthorized, ErrNotFound, ErrConflict, ErrTooManyRequests, ErrInternal, ErrServiceUnavailable, …). When a handler returns an error, the error handler picks the status with errors.Is. An error that matches no sentinel becomes 500 with the internal code. Echo's own errors (404, 405, timeouts) are rendered in the same envelope.

return fmt.Errorf("%w: email %q is taken", server.ErrConflict, email)
// 409 {"status":"Failure","status_code":409,"message":"conflict","code":"conflict",...}

message is the error unwrapped by one level and code is the sentinel of the status. Failure responses also set the X-Trace-Id and X-Request-Id headers.

Hiding internals. By default message may contain driver texts. With WithHiddenErrorDetails(), or server.HideErrorDetailsMiddleware() on a group, only the top sentinel is shown. The full error still goes to the access log.

e := server.NewHandler(logger).WithHiddenErrorDetails().Build()
// return fmt.Errorf("query users: %w", pgErr) -> {"message":"internal","code":"internal",...}
Parsing and validation
e.Use(server.ValidateMiddleware(validator.New()))

e.POST("/users", func(ctx echo.Context) error {
	var req struct {
		Name  string `json:"name" validate:"required,min=3"`
		Email string `json:"email" validate:"required,email"`
	}
	if err := server.Parse(ctx, &req); err != nil {
		return server.Failure(ctx, http.StatusBadRequest, err)
		// {"code":"bad_request","params":[{"key":"Name","value":"min","expected":"3",...}],...}
	}
	...
})

blob, err := server.File(ctx, "avatar")   // whole multipart file
fields, err := server.ParseForm(ctx)      // first value of each multipart field
headers := server.HeadersMap(ctx)
Pagination
var p server.PageParams                              // query: page, page-size, cursor
_ = server.Parse(ctx, &p)
req := p.Normalize()                                 // {Page:1 Size:20 Cursor:""} by default
req = p.Normalize(server.MaxPageSize(5000))          // custom upper bound per endpoint

Normalize is never applied implicitly. The result never means "the whole table", because Size is always within [1, max]. Embed server.CursorPage (next_cursor, has_more) or server.OffsetPage (adds page, page_size, total, max_pages) into the response struct. next_cursor is null on the last page. SortByParams binds sort-by-field and sort-by-asc.

Trace ids
id := server.TraceIDFromContext(ctx.Request().Context()) // pass it to downstream calls

The trace_id string key is also written to the request context so that existing code can still read it.

Access log and masking
server.NewHandler(logger).
	WithBodyLog(512, "passport", "card_number"). // body prefix size + extra masked keys
	WithResponseBodyLog().                        // also log the response body prefix (off by default)
	Build()

Masking works on raw bytes, including truncated JSON, URL-encoded bodies and query strings, and matches keys case-insensitively. Swagger static files are not logged. To keep a group's responses out of the log, call ctx.Set(server.ResponseStoreKey, false) in a group middleware.

Body limit, CORS and custom middleware lists
server.NewHandler(logger).
	WithBodyLimit(100 << 20).                      // 100 MiB for upload endpoints; <= 0 = no limit
	WithCORSOrigins("https://app.example.com").   // default "*"
	WithMiddleware(myAuthMiddleware).             // appended after the defaults
	Build()

WithMiddlewares([]echo.MiddlewareFunc{...}) replaces the default list. The body limit, error handler and hidden error details still apply. To build your own list, use TraceMiddleware, RecoverMiddleware, BeforeLogMiddlewareWithConfig and AfterLogMiddlewareWithConfig.

Response cache
type redisCache struct{ /* ... */ }
func (c *redisCache) Get(ctx context.Context, r *http.Request) ([]byte, bool, error) { ... }
func (c *redisCache) Set(ctx context.Context, r *http.Request, body []byte, ttl time.Duration) error { ... }

e.GET("/catalog", handler, server.CacheMiddleware(&redisCache{}, time.Minute))

Only 2xx responses are stored. A failing cache never fails the request: an error from Get runs the handler, and an error from Set is ignored.

Cookies
ctx.SetCookie(server.NewCookie("session", id).
	WithHttpOnly(true).WithSecure(true).WithSameSite(http.SameSiteLaxMode).
	WithMaxAage(3600).Build())

Client

Requests and bodies
c := client.New().WithBaseURL("https://api.example.com").WithHeader("X-App", "demo")

c.R(ctx).GET("/users")
c.R(ctx).WithQuery("q", "ann").WithQueryValues(url.Values{"id": {"1", "2"}}).GET("/users")
c.R(ctx).POST("/users", User{Name: "ann"})                // JSON + Content-Type: application/json
c.R(ctx).PUT("/avatar", client.Raw(png, "image/png"))     // raw bytes or io.Reader

form := client.NewFormData()                              // multipart/form-data
_ = form.Add("name", "ann")
_ = form.AddFile("avatar", "ann.png", png)
c.R(ctx).POST("/upload", form)

urlencoded := client.NewFormUrlEncodedWriter()            // application/x-www-form-urlencoded
urlencoded.Set("grant_type", "client_credentials")
c.R(ctx).WithBasicAuth(id, secret).POST("/oauth/token", urlencoded)

A []byte body without Raw is sent as a JSON (base64) string, which is how encoding/json works.

Reading responses
resp, err := c.R(ctx).GET("/users/42")
if err != nil { ... }            // transport error, timeout, retries exhausted
if err := resp.Err(); err != nil {
	var httpErr *client.HTTPError // StatusCode, Method, URL, Body (first 1 KiB)
	errors.As(err, &httpErr)
}
var u User
err = resp.JSON(&u)              // wraps client.ErrParseResponseBody

A non-2xx status is not an error of the call. Check resp.Err(). With WithResult(&v) the 2xx body is decoded while it streams and BodyRaw() is empty. For non-2xx responses the first 64 KiB are kept in BodyRaw() and v is not touched.

Retries
c := client.New().WithRetryPolicy(client.RetryPolicy{
	MaxAttempts:        4,                                     // total, 0 -> 3
	Backoff:            func(n int) time.Duration { ... },     // nil -> exponential + jitter, 100ms..5s
	RetryOn:            func(r *client.Response, err error) bool { ... }, // nil -> transport error or 429/502/503/504
	RetryNonIdempotent: false,                                 // allow POST/PATCH with the default RetryOn
})
  • Retry-After (seconds or HTTP-date) on 429 and 503 is honoured. The client waits at least that long.
  • If the last attempt received a response (for example 503), the call returns it with a nil error. If every attempt failed with an error, the call returns ErrRequestRetryDo, which wraps all attempt errors (errors.Is reaches the cause).
  • A policy set on a Request overrides the one from the Client. Without a policy, the older WithRetryCount/WithRetryWait pair retries any error of the call, for any method.
Timeouts
What How Default
Whole call (all attempts and waits) WithTimeout(d) none
One attempt (including reading the body) WithAttemptTimeout(d) none
Waiting for response headers PoolConfig.ResponseHeaderTimeout 60 s (default pool)
Observability
c := client.New().WithObserver(func(ctx context.Context, a client.Attempt) {
	metrics.ObserveHTTP(a.Method, a.URL, a.StatusCode, a.Duration, a.Err) // every attempt, errors too
})

WithBeforeMiddlewares and WithAfterMiddlewares are also available. After-middlewares only run for attempts that received a response.

Connection pool and TLS
c := client.New().WithConnectionPool(client.PoolConfig{MaxIdleConnsPerHost: 512}) // zero fields = defaults
c := client.New().WithTransport(otelhttp.NewTransport(client.NewTransport(client.DefaultPoolConfig())))
c := client.New().WithHttpClient(http.Client{Transport: myTransport})

Create clients with their own pool once and reuse them. A pool per request means a new TCP connection and TLS handshake for every call.

TLS verification is off by default (InsecureSkipVerify: true) to stay compatible with deployments that use self-signed certificates between services. To turn it on, set PoolConfig.TLSClientConfig:

client.New().WithConnectionPool(client.PoolConfig{TLSClientConfig: &tls.Config{MinVersion: tls.VersionTLS12}})

The default transport does not read HTTP(S)_PROXY. Use WithTransport with Proxy: http.ProxyFromEnvironment if you need a proxy.

Configuration reference

server.HandlerBuilder
Method Default Description
WithBodyLimit(n int64) DefaultBodyLimit (10 MiB) Maximum request body. A larger body gets 413. <= 0 turns the limit off.
WithBodyLog(maxBytes int, maskKeys ...string) 128 bytes Size of the logged body prefix (0 = off) and extra masked keys.
WithResponseBodyLog() off Log the response body prefix as well.
WithCORSOrigins(origins ...string) "*" Allowed CORS origins. Credentials are allowed.
WithHiddenErrorDetails() off Show only the top sentinel in message.
WithMiddleware(mw) none Append a middleware after the defaults.
WithMiddlewares(list) defaults Replace the default middleware list.
WithHidePort(bool), WithHideBanner(bool) true, true echo start-up output.
server.LogConfig
Field Default Description
BodyBytes 128 Body prefix size. 0 turns it off and a negative value means the default.
MaskKeys none Extra keys to mask. password, client_secret, token and msisdn are always masked.
ResponseBody false Log the response body prefix.
server.Config / server.TimeConfig

Addr, ReadTimeout, ReadHeaderTimeout, WriteTimeout, IdleTimeout and MaxHeaderBytes, with json/yaml tags. Every timeout is a TimeConfig{Milliseconds, Seconds, Minutes, Hours}, and .Duration() returns their sum.

client.Client / client.Request
Method Default Description
WithBaseURL(url) "" Prefix for request paths (Client only).
WithHeader(s), WithContentType, WithAuthorization none Headers.
WithBearerToken(t), WithBasicAuth(u, p) none Auth. Basic auth takes priority.
WithCookie(s) none Cookies, copied per request.
WithQuery(ies), WithQueryValues none Query params, single or multiple values per key.
WithTimeout(d) none Whole call.
WithAttemptTimeout(d) none One attempt.
WithRetryPolicy(p) none See Retries.
WithRetryCount(n), WithRetryWait(d) 1, 100 ms Older retry mechanism.
WithMaxResponseSize(n) unlimited Larger responses return ErrResponseTooLarge.
WithObserver(fn) none Called after every attempt.
WithBeforeMiddlewares / WithAfterMiddlewares none Hooks.
WithRequestOptions(fn...) none Change the *http.Request before it is sent.
WithConnectionPool(cfg), WithTransport(rt), WithHttpClient(c) shared pool Own pool or transport.
WithResult(&v) none Stream-decode a 2xx JSON body (Request only).
client.PoolConfig (zero value = default)
Field Default
MaxIdleConns 256
MaxIdleConnsPerHost 128
MaxConnsPerHost 0 (unlimited, negative also means unlimited)
IdleConnTimeout 90 s
TLSHandshakeTimeout 5 s
ExpectContinueTimeout 1 s
DialTimeout / DialKeepAlive 3 s / 30 s
ResponseHeaderTimeout 60 s (negative means no timeout)
DisableHTTP2 false (HTTP/2 is attempted)
TLSClientConfig nil, which skips verification (see above)
client.RetryPolicy
Field Default
MaxAttempts DefaultRetryMaxAttempts (3)
Backoff DefaultBackoff: 100 ms doubled per attempt up to 5 s, with half of it as jitter
RetryOn transport error or 429/502/503/504
RetryNonIdempotent false

FAQ

Why are some error codes prefixed with api. (for example api.handler.validate_request_body)? These strings are part of the wire format that existing clients already match on, so they were kept as they are when the package became server.

Do I have to use both packages? No. server and client are independent. Only the module (and its go.sum) is shared, and importing client does not compile echo into your binary.

Is Client safe for concurrent use? Yes, once it is configured: c.R(ctx) copies its settings into a new Request. Do not call With* on a shared Client while other goroutines are calling R.

Security of dependencies. The go.mod lists the lowest versions that support Go 1.23. Your application's go.mod can (and should) require newer versions of golang.org/x/net, golang.org/x/crypto and similar packages. Go's minimal version selection will use them.

Contributing

Issues and pull requests are welcome. Before you open a PR, run:

make check   # go vet, golangci-lint, go test -race

Keep the public API backward compatible within a minor version, add tests for bug fixes, and add an entry to CHANGELOG.md.

License

MIT © 2026 boostgo

Documentation

Overview

Package httpkit is a batteries-included toolkit for HTTP services in Go.

The module is split into two packages that can be used independently:

  • github.com/boostgo/httpkit/server builds an echo v4 server with a consistent JSON response envelope, trace ids, access logs with masking of sensitive values, body limits, panic recovery, pagination helpers, request parsing and validation, cookies and a response cache middleware.
  • github.com/boostgo/httpkit/client is a thin, fluent HTTP client on top of net/http with a shared tuned connection pool, retry policies with backoff and Retry-After, per-call and per-attempt timeouts, response size limits, streaming JSON decoding, observers and body writers (JSON, multipart form-data, URL-encoded forms, raw bytes).

This root package only holds the bits shared by both, such as the ContentType* constants.

Index

Constants

View Source
const (
	// ContentTypeText is the MIME type of plain text.
	ContentTypeText = "text/plain"
	// ContentTypeHTML is the MIME type of HTML documents.
	ContentTypeHTML = "text/html"
	// ContentTypeCSS is the MIME type of CSS stylesheets.
	ContentTypeCSS = "text/css"
	// ContentTypeJS is the MIME type of JavaScript sources.
	ContentTypeJS = "text/javascript"
	// ContentTypeCSV is the MIME type of CSV files.
	ContentTypeCSV = "text/csv"

	// ContentTypeGif is the MIME type of GIF images.
	ContentTypeGif = "image/gif"
	// ContentTypeIco is the MIME type of ICO icons.
	ContentTypeIco = "image/vnd.microsoft.icon"
	// ContentTypeJpeg is the MIME type of JPEG images.
	ContentTypeJpeg = "image/jpeg"
	// ContentTypePng is the MIME type of PNG images.
	ContentTypePng = "image/png"
	// ContentTypeSvg is the MIME type of SVG images.
	ContentTypeSvg = "image/svg+xml"
	// ContentTypeBmp is the MIME type of BMP images.
	ContentTypeBmp = "image/bmp"

	// ContentTypeMp3 is the MIME type of MP3 audio.
	ContentTypeMp3 = "audio/mpeg"
	// ContentTypeWav is the MIME type of WAV audio.
	ContentTypeWav = "audio/wav"

	// ContentTypeMp4 is the MIME type of MP4 video.
	ContentTypeMp4 = "video/mp4"
	// ContentTypeMpeg is the MIME type of MPEG video.
	ContentTypeMpeg = "video/mpeg"

	// ContentTypeBytes is the MIME type of arbitrary binary data.
	ContentTypeBytes = "application/octet-stream"
	// ContentTypeOctetStream is an alias of ContentTypeBytes.
	ContentTypeOctetStream = ContentTypeBytes
	// ContentTypeJSON is the MIME type of JSON documents.
	ContentTypeJSON = "application/json"
	// ContentTypeXML is the MIME type of XML documents.
	ContentTypeXML = "application/xml"
	// ContentTypeForm is the MIME type of URL-encoded forms.
	ContentTypeForm = "application/x-www-form-urlencoded"
	// ContentTypePdf is the MIME type of PDF documents.
	ContentTypePdf = "application/pdf"
	// ContentTypeRar is the MIME type of RAR archives.
	ContentTypeRar = "application/vnd.rar"
	// ContentTypeTar is the MIME type of TAR archives.
	ContentTypeTar = "application/x-tar"
	// ContentTypeZip is the MIME type of ZIP archives.
	ContentTypeZip = "application/zip"
	// ContentTypeSevenZip is the MIME type of 7z archives.
	ContentTypeSevenZip = "application/x-7z-compressed"
	// ContentTypeBash is the MIME type of shell scripts.
	ContentTypeBash = "application/x-sh"
	// ContentTypeJar is the MIME type of Java archives.
	ContentTypeJar = "application/java-archive"
	// ContentTypeWord is the MIME type of Microsoft Word (.docx) documents.
	ContentTypeWord = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
	// ContentTypeExcel is the MIME type of Microsoft Excel (.xlsx) spreadsheets.
	ContentTypeExcel = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
	// ContentTypePowerPoint is the MIME type of Microsoft PowerPoint (.pptx) presentations.
	ContentTypePowerPoint = "application/vnd.openxmlformats-officedocument.presentationml.presentation"
	// ContentTypeEpub is the MIME type of EPUB books.
	ContentTypeEpub = "application/epub+zip"

	// ContentTypeTtf is the MIME type of TrueType fonts.
	ContentTypeTtf = "font/ttf"
)

MIME types shared by the server and client packages.

They are plain strings and can be used anywhere a Content-Type header value is expected, for example server.ReturnExcel uses ContentTypeExcel and client.Raw defaults to ContentTypeOctetStream.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package client is a thin HTTP client on top of net/http with base url, shared headers/cookies/query params, middlewares and a retry mechanism.
Package client is a thin HTTP client on top of net/http with base url, shared headers/cookies/query params, middlewares and a retry mechanism.
examples
client command
Command client shows httpkit/client against a flaky local server: retries with backoff, per-attempt timeout, observers and typed results.
Command client shows httpkit/client against a flaky local server: retries with backoff, per-attempt timeout, observers and typed results.
roundtrip command
Command roundtrip starts an httpkit/server API in-process and consumes it with httpkit/client, decoding the response envelope.
Command roundtrip starts an httpkit/server API in-process and consumes it with httpkit/client, decoding the response envelope.
server command
Command server runs an echo server built with httpkit/server: response envelope, trace ids, access log, sentinel errors and pagination.
Command server runs an echo server built with httpkit/server: response envelope, trace ids, access log, sentinel errors and pagination.
Package server builds echo v4 HTTP servers with a consistent JSON response envelope and production-ready defaults.
Package server builds echo v4 HTTP servers with a consistent JSON response envelope and production-ready defaults.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL