Nope. This doesn't belong to rest. It's just a way of authentication, even though it is mostly used by rest.
Also, if your app mixes both api and web stuff, you will have trouble.