0.0.32 • Published 9 years ago

eden-http v0.0.32

Weekly downloads
41
License
-
Repository
github
Last release
9 years ago

#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

  1. function

Returns

this

Example

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

disconnect

 this disconnect(Function);

Disconnects the server

Parameters

  1. 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

  1. string

Returns

this

Example

Code
http().setHost();
Outputs
RESULTS

setPort

 this setPort(String);

Sets the identifiable port

Parameters

  1. string

Returns

this

Example

Code
http().setPort();
Outputs
RESULTS
0.0.32

9 years ago

0.0.31

9 years ago

0.0.30

9 years ago

0.0.28

10 years ago

0.0.27

10 years ago

0.0.26

10 years ago

0.0.25

10 years ago

0.0.24

10 years ago

0.0.23

10 years ago

0.0.21

10 years ago

0.0.20

10 years ago

0.0.17

10 years ago