copper v0.4.1 Copper.Siren

Link to this section Summary

Functions

Adds a link to the next page, if it's not the last page.

Adds a link to the previous page, if it's not the first page.

Creates an updated uri to a new page.

Encodes a payload to Siren.

Merges two uris into one.

Link to this section Functions

Link to this function

add_next(links, conn, count)

Adds a link to the next page, if it's not the last page.

Link to this function

add_prev(links, conn)

Adds a link to the previous page, if it's not the first page.

Link to this function

add_self(links, conn)

Link to this function

change_page(conn, new_page)

Creates an updated uri to a new page.

Link to this function

encode(conn, payload)

Link to this function

encode(conn, payload, count)

Encodes a payload to Siren.

Link to this function

links(conn, count)

Link to this function

merge_uris(lhs, rhs)

Merges two uris into one.