• Create a http client

    Parameters

    Returns "http".Client

    Example


    import * as iconv from 'iconv';
    import * as http from 'http';
    import {Encoding} from 'buffer';

    let client = http.newClient();
    let resp = client.get('xxx.com/login');
    let result = iconv.decode(resp.data, Encoding.Utf8);