Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

poodle

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

poodle

Transport framework

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Poodle

Transport framework

Provides an API for managing service calls and static image loading that is a) evented (based on evan) and b) is consistent with the OOP principles laid down in troop.

Wiki

Reference

Examples

jsFiddle

POSTing to an endpoint:

'/endpoint/path'.toEndpoint().toRequest()
    .setHttpMethod('POST')
    .setParam('param', 'value')
    .toService()
        .callService();

Capturing the service's successful return:

'/endpoint/path'.toEndpoint()
    .subscribeTo(poodle.Service.EVENT_SERVICE_SUCCESS, function (event) {
        console.log("service returned with response", event.responseNode);
    })

Loading a static image:

'/images/foo.jpg'.toImageUrl()
    .loadImage();

Capturing the successful loading of the image into an image element:

'/images/foo.jpg'.toImageUrl()
    .subscribeTo(poodle.Image.EVENT_IMAGE_LOAD_SUCCESS, function (event) {
        console.log("image loaded into", event.imageElement);
    });

Keywords

FAQs

Package last updated on 10 Jul 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc