Eg. Token authentication header
header "Authorization", ActionController::HttpAuthentication::Token.encode_credentials("mytoken")
Generated curl:
curl "http://somehost/someurl" -X GET \
-H "Authorization: Token token="mytoken""