Code Explainers

Code explainers tagged #embedding

go
package handlers
 
import (
	"net/http"

Serving embedded static meta files in Gin

embedding static assets http caching
Intermediate 6 steps
rust
use axum::{
    body::Body,
    http::{header, HeaderValue, StatusCode, Uri},
    response::{IntoResponse, Response},

Serving embedded static files in Axum

static-assets embedding http-headers
Intermediate 7 steps
go
package middleware
 
import (
	"compress/gzip"

How gzip response compression works in Gin

middleware compression http
Intermediate 8 steps