<commit_before># http-observable
A simple `RxJs` Observable binding for Node.js `http` module. This observable is useful to handle `streaming` http response.

## Install

```
npm i http-observable

```

## Usage

```javaScript

    var HttpObservable = require('http-observable');

    // Http Request options
    // https://nodejs.org/api/http.html#http_http_request_options_callback
    //
    var options = {
        hostname: 'somestreamingapi.com',
        port: 80,
        path: '/stream'
    };

    new HttpObservable(options)
        .subscribe(<commit_msg>https and postdata<commit_after># http-observable
A simple `RxJs` Observable binding for Node.js `http` module. This observable is useful to handle `streaming` http response.

## Install

```sh
npm i http-observable
```

## Usage

```javaScript

    var HttpObservable = require('http-observable');

    // Http Request options
    // https://nodejs.org/api/http.html#http_http_request_options_callback
    //
    var options = {
        hostname: 'somestreamingapi.com',
        port: 80,
        path: '/stream'
    };

    new HttpObservable(options)
        .subscribe(
{'fraction_non_alphanumeric': 0.11929824561403508, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 2.9618055555555554, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1127067', 'n_tokens_mistral': 362, 'n_tokens_neox': 338, 'n_words': 90}