Common api for internal and external (http) requests to storage