Add support for API in HTTP protocol.