Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@equinor/fusion-framework-module-http
Advanced tools
Module for configuring and providing http clients
Module for configuring and providing http clients
const configure = (config) => {
config.http.configureClient(
'bar',
'https://somewhere-test.com'
);
}
const configure = (config) => {
config.http.configureClient(
'bar',
{
baseUri: 'https://foo.bar',
defaultScopes: ['foobar/.default']
}
);
}
const configure = async(config) => {
config.http.configureClient(
'bar',
(client): => {
client.uri = 'https://foo.bar'
client.defaultScopes: ['foobar/.default']
}
);
}
const client = modules.http.createClient('foo');
const selector = (response: Response): Promise<FooBar> => response.json();
// stream
client.fetch('/api/admin', {selector, scopes: ['foobar/.admin']}).subscribe(x => console.log(x));
// async
client.fetchAsync('/api', {selector}).then(console.log);
const client = modules.http.createClient('foo');
const logger = console.debug;
client.requestHandler.add((x: Request) => logger(x));
client.responseHandler.add((x: Request) => logger(x));
FAQs
> __The Fusion Framework HTTP Module provides a streamlined and powerful HTTP client for making requests to APIs.__ > > The module supports both asynchronous (Promise-based) and observable (RxJS-based) execution methods, allowing you to choose the approac
The npm package @equinor/fusion-framework-module-http receives a total of 2,379 weekly downloads. As such, @equinor/fusion-framework-module-http popularity was classified as popular.
We found that @equinor/fusion-framework-module-http demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.