Socket
Socket
Sign inDemoInstall

@aelesia/ext

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aelesia/ext

Extension version of @aelesia/commons


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Install size
762 kB
Created
Weekly downloads
 

Readme

Source

GET

Http.url('https://www.reddit.com/r/singapore.json')
.get<ForumInfo>()
.then((data)=>{
    let a = data.data
    console.log(a.kind)
    a.data.children.forEach(({data})=>{
        console.log(data.id)
        console.log(data.title)
        console.log(data.author)
        console.log(data.url)
    })
})

POST

Http.url('https://something.com')
    .post<Generic>()

Authorization

Basic

Http.url('')
    .auth_basic('username', 'password')

Bearer

Http.url('')
    .auth_bearer('token')

Headers

Indivdual

Http.url('')
    .header('header1', 'value1')
    .header('header2', 'value2')
    .header('header3', 'value3')

JSON

Http.url('')
    .headers({
        header1: 'value1',
        header2: 'value2',
        header3: 'value3'
    })

Params

Individual

Http.url('')
    .param('param1', 'value1')
    .param('param2', 'value2')
    .param('param3', 'value3')

JSON

Http.url('')
    .params({
        param1: 'value1',
        param2: 'value2',
        param3: 'value3'
    })

Body (Form)

Individual

Http.url('')
    .body_form('key1','value1')
    .body_form('key2','value2')
    .body_form('key3','value3')

JSON

Http.url('')
    .body_forms({
        key1: 'value1',
        key2: 'value2',
        key3: 'value3'
    })

Body (JSON)

Individual

Http.url('')
    .body_json_('key1','value1')
    .body_json_('key2','value2')
    .body_json_('key3','value3')

JSON

Http.url('')
    .body_json({
        key1: 'value1',
        key2: 'value2',
        key3: 'value3'
    })

FAQs

Last updated on 19 Dec 2019

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