How to use @tinkoff/request-plugin-protocol-http - 1 common examples

To help you get started, we’ve selected a few @tinkoff/request-plugin-protocol-http examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TinkoffCreditSystems / tinkoff-request / packages / plugin-cache-etag / src / etag.ts View on Github external
complete: (context, next) => {
            const cacheKey = getCacheKeyUtil(context, getCacheKey);
            const etag = getHeader(context as any, 'etag');

            if (etag) {
                lruCache.set(cacheKey, {
                    key: etag,
                    value: context.getResponse(),
                });
            }

            next();
        },
        error: (context, next) => {

@tinkoff/request-plugin-protocol-http

Make requests using http(s) protocol

Apache-2.0
Latest version published 4 months ago

Package Health Score

45 / 100
Full package analysis

Popular @tinkoff/request-plugin-protocol-http functions