link

package
v0.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: BSD-3-Clause, Apache-2.0 Imports: 4 Imported by: 0

README

http-link-go implements parsing and serialization of Link header values as defined in RFC 5988.

Documentation

Installation

go get github.com/tent/http-link-go

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

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.

Types

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

func Parse

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.

Jump to

Keyboard shortcuts

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