add getLocal/setLocal api to HttpRequest