Socket
Socket
Sign inDemoInstall

http-client.jsx

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    http-client.jsx

http client for Adobe ExtendedScript


Version published
Weekly downloads
1
Maintainers
1
Install size
11.7 kB
Created
Weekly downloads
 

Readme

Source

http-client.jsx

Tiny http client for Photoshop

Install

npm

$ npm install --save http-client.jsx

bower

$ bower install --save http-client.jsx

Download Latest Build

Download lib/http-client.full.jsx

Usage

#target "photoshop"
#include "node_modules/http-client.jsx/lib/http-client.full.jsx"

var client =
  new HttpClient('localhost', {
    encoding: 'binary',
    port: 80,
    timeout: 10,
    headers: {
      "User-Agent": "Adobe ExtendScript"
    }
  });

var options = { uri: '/', body: "...", headers: { ... } };
client.post(options, function(response) { ... });

API

See example/client.jsx for usage samples.

Class: HttpClient

client.get(options, callback)

client.post(options, callback)

client.put(options, callback)

client.delete(options, callback)

client.head(options, callback)

client.request(verb, options, callback)

client.close()

License

MIT © Javier Blanco

FAQs

Last updated on 13 Jun 2016

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