spec: define method values

Fixes issue 2280.

R=golang-dev, r, bradfitz, iant, andybalholm, gri
CC=golang-dev
https://codereview.appspot.com/7816045