response

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNextRequest

func GetNextRequest(prevRequest *http.Request, prevResponse *http.Response) *http.Request

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) GetNextRequest

func (p *Parser) GetNextRequest(prevRequest *http.Request, prevResponse *http.Response) *http.Request

type RelType

type RelType string

RelType represents the type of the link relation.

const (
	RelTypeNext    RelType = `rel="next"`
	RelTypePrev    RelType = `rel="prev"`
	RelTypeFirst   RelType = `rel="first"`
	RelTypeLast    RelType = `rel="last"`
	RelTypeUnknown RelType = ``
)

RelType constants.

Jump to

Keyboard shortcuts

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