link

package module
v0.0.0-...-ac974c6 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2013 License: BSD-3-Clause Imports: 4 Imported by: 115

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