I think here is a bug, which is also in master: you cannot specify a function for ```:allowed-methods``` like you can e.g. for ```available-media-types```