Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct {
Links []*Link
}
Header contains all of the links in the header with ways of accessing them
func ParseString ¶
ParseString will parse a string from the link header and find all appropriate infomation from link headers
func (Header) Find ¶
Find will search for a link with the rel matching one of the values passed. If it does not exist then nil will be returned.
func (Header) First ¶
First will find the link for the link to the first page with rel="first" if it exists. It will return nil if it does not exist.
func (Header) Last ¶
Last will find the link for the link to the last page with rel="last" if it exists. It will return nil if it does not exist.
func (Header) Next ¶
Next will find the link for the link to the next page with rel="next" if it exists. It will return nil if it does not exist.