Versions in this module Expand all Collapse all v0 v0.1.0 Nov 30, 2026 Changes in this version + const DefaultBadRequestStatusCode + const DefaultBlockStatusCode + const DefaultMaxBatchSize + const DefaultMaxBodyBytes + var DefaultPassthroughHTTPMethods = []string + func New(_ context.Context, next http.Handler, config *Config, name string) (http.Handler, error) + type BlockedMethod struct + Error *JSONRPCError + Pattern string + StatusCode int + type Config struct + AllowedMethods []string + BadRequestError *JSONRPCError + BadRequestStatusCode int + BlockError *JSONRPCError + BlockStatusCode int + BlockedMethods []BlockedMethod + MaxBatchSize int + MaxBodyBytes int64 + PassthroughHTTPMethods []string + RestrictHTTPMethods bool + func CreateConfig() *Config + type JSONRPCError struct + Code int + Data any + Message string