httpresp

package
v0.0.0-...-3c2e532 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionFunc

type OptionFunc func(*Response)

func WithContentType

func WithContentType(contentType string) OptionFunc

func WithStatusCode

func WithStatusCode(code int) OptionFunc

type Response

type Response struct {
	Data        any
	StatusCode  int
	ContentType string
}

Jump to

Keyboard shortcuts

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