New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tschallacka/oc.foundation.request

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tschallacka/oc.foundation.request

The request object for making October foundation requests

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Request helper for the October Foundation Framework

installation:

 npm install @tschallacka/oc.foundation.request

settings:

Default the OctoberCMS handlers are used.
You can can overwrite these to use your own header handlers.

var Request = require('@tschallacka/oc.foundation.request');
/**
 * Headers to be interpreted by the server side code.
 */
Request.PROPERTIES.REQUEST_HANDLER = 'X-MYHANDLER-REQUEST-HANDLER';
Request.PROPERTIES.REQUEST_PARTIALS = 'X-MYHANDLER-REQUEST-PARTIALS';
Request.PROPERTIES.REQUEST_FLASH = 'X-MYHANDLER-REQUEST-FLASH';

/**
 * Returned properties from request
 */
Request.PROPERTIES.ASSETS: 'X_MYHANDLER_ASSETS',
Request.PROPERTIES.ERROR_FIELDS: 'X_MYHANDLER_ERROR_FIELDS',
Request.PROPERTIES.ERROR_MESSAGE: 'X_MYHANDLER_ERROR_MESSAGE',
Request.PROPERTIES.REDIRECT: 'X_MYHANDLER_REDIRECT',

See the jQuery request framework at https://github.com/tschallacka/npm_jquery.request that uses this.

Keywords

october

FAQs

Package last updated on 06 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts