httputil

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAddressParam added in v1.1.6

func DecodeAddressParam(encoded string) string

DecodeAddressParam restores IBC token addresses that were encoded for URL path segments. by replacing a leading "ibc-" prefix with "ibc/".

func NewError

func NewError(ctx *gin.Context, status int, err error)

NewError

Types

type BadRequestError

type BadRequestError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"bad request"`
}

HTTPError example

type HTTPError

type HTTPError struct {
	Code    int    `json:"code" example:"400"`
	Message string `json:"message" example:"bad request"`
}

HTTPError example

type InternalServerError

type InternalServerError struct {
	Code    int    `json:"code" example:"500"`
	Message string `json:"message" example:"internal server error"`
}

HTTPError example

type NotFoundError

type NotFoundError struct {
	Code    int    `json:"code" example:"404"`
	Message string `json:"message" example:"not found"`
}

HTTPError example

Jump to

Keyboard shortcuts

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