Socket
Socket
Sign inDemoInstall

poodle

Package Overview
Dependencies
6
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

poodle

Transport framework


Version published
Maintainers
1
Weekly downloads
7
increased by40%

Weekly downloads

Readme

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

Last updated on 10 Jul 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc