httputil

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package httputil provides HTTP utility functions including retry logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultRetryOpts

func DefaultRetryOpts() []backoff.RetryOption

DefaultRetryOpts returns the standard retry options used across HTTP clients.

func IsPermanentHTTPError

func IsPermanentHTTPError(statusCode int) bool

IsPermanentHTTPError returns true if the HTTP status code represents a permanent (non-retriable) error. Transient errors like 408 (Request Timeout) and 429 (Too Many Requests) are retriable; all other 4xx are permanent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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