import axios from 'axios';
const HTTP_ID_KEY = "ctx-key-http-id";
export const withXhttp = (ctx, axios) => {
    return Object.assign(Object.assign({}, ctx), { [HTTP_ID_KEY]: axios });
};
export const getXhttp = (ctx) => {
    const l = ctx[HTTP_ID_KEY];
    if (l == undefined) {
        return axios.create();
    }
    return l;
};
//# sourceMappingURL=context.js.map