🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

eden-http

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eden-http

Eden Node JS General Web Server

latest
Source
npmnpm
Version
0.0.32
Version published
Maintainers
1
Created
Source

#Http

DESCRIPTION

Build Status

General

Installation

npm install eden-http

Usage

var http = require('eden-http');

Methods

connect

 this connect(Function);

Connect to server

Parameters

  • function

Returns

this

Example

Code
http().connect();
Outputs
'Server has already started.'

disconnect

 this disconnect(Function);

Disconnects the server

Parameters

  • function

Returns

this

Example

Code
server.disconnect();
Outputs
'Server is already disconnected.'

getHost

 string getHost();

Returns the host

Parameters

Returns

string

Example

Code
  this._host= '127.0.0.1';

this.getHost();
Outputs
'127.0.0.1'

getPort

 int getPort();

Returns the port

Parameters

Returns

int

Example

Code
  this._port = 1337;

this.getPort(); 
Outputs
1337

getResource

 object getResource();

Returns the connection resource

Parameters

Returns

object

Example

Code
  //  this.getResource = function() {
  //    return this._port;
  //  };

  this._port = 1337;

this.getResource();  
Outputs
1337

setHost

 this setHost(String);

Sets the identifiable host name

Parameters

  • string

Returns

this

Example

Code
http().setHost();
Outputs
RESULTS

setPort

 this setPort(String);

Sets the identifiable port

Parameters

  • string

Returns

this

Example

Code
http().setPort();
Outputs
RESULTS

Keywords

eden

FAQs

Package last updated on 01 Jun 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