http-link-go: github.com/tent/http-link-go Index | Files

package link

import "github.com/tent/http-link-go"

Package link implements parsing and serialization of Link header values as defined in RFC 5988.

Index

Package Files

link.go

func Format Uses

func Format(links []Link) string

Format serializes a slice of Links into a header value. It does not currently implement RFC 2231 handling of non-ASCII character encoding and language information.

func Parse Uses

func Parse(l string) ([]Link, error)

Parse parses a Link header value into a slice of Links. It does not currently implement RFC 2231 handling of non-ASCII character encoding and language information.

type Link struct {
    URI    string
    Rel    string
    Params map[string]string
}

Package link imports 4 packages (graph) and is imported by 13 packages. Updated 2017-01-07. Refresh now. Tools for package owners.