title: Http.post error: map is not a function in Angular 2
body: <p>I'm trying to get data from url by http.post function. But I'm getting errors.
  The source code of app.component.ts file:</p>
  
  <pre><code>import {Component} from 'angular2/core';
  import {bootstrap} from 'angular2/platform/browser';
  import {Http, HTTP_PROVIDERS, Headers} from 'angular2/http';
  @Component({
  selector: 'my-app',
  template: `
   &lt;div&gt;
    &lt;button (click)="postData()"&gt;Post Data&lt;/button&gt;
    &lt;p&gt;Posted the following values:&lt;/p&gt;
    &lt;div&gt;{{postResponse.id}}&lt;/div&gt;
    &lt;div&gt;{{postResponse.name}}&lt;/div&gt;
   &lt;/div&gt;`
  })
  export class AppComponent {
   result: Object;
   http: Http;
   postResponse = new Person();
  
   constructor(http: Http) {
      this.http = http;
   }
  
   postData(){
      var headers = new Headers();
      headers.append('Content-Type', 'application/json');
  
      this.http.post('http://141.79.39.454:8008/the-link-something-like-this...', JSON.stringify({"id": 1, "name": "Новые"}),{headers:headers})
      .map(res =&gt; res.json())
      .subscribe((res:Person) =&gt; this.postResponse = res);
   }
  }
  
  class Person{
   id:number;
   name:string;
  }
  
  bootstrap(AppComponent, [HTTP_PROVIDERS]);
  </code></pre>
  
  <p>JSON in url looks like <a href="http://i.stack.imgur.com/uDnh7.png" rel="nofollow">this.</a>
  When I click the button I'm getting the errors look like this: </p>
  
  <pre><code>EXCEPTION: Error during evaluation of "click"
  Uncaught EXCEPTION: Error during evaluation of "click"
  ORIGINAL EXCEPTION: TypeError: this.http.post(...).map is not a function
  ORIGINAL STACKTRACE:
  TypeError: this.http.post(...).map is not a function
  at AppComponent.postData (http://localhost:3000/app/app.component.js:35:26)
  at AbstractChangeDetector.ChangeDetector_AppComponent_0.handleEventInternal (eval at &lt;anonymous&gt; (http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:10897:14), &lt;anonymous&gt;:124:33)
  at AbstractChangeDetector.handleEvent (http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:8788:22)
  at AppView.dispatchEvent (http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:9396:39)
  at AppView.dispatchRenderEvent (http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:9391:19)
  at DefaultRenderView.dispatchRenderEvent (http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:7819:53)
  at eventDispatcher (http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:9781:19)
  at http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:9852:14
  at http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:15370:34
  at http://localhost:3000/node_modules/angular2/bundles/angular2.dev.js:7874:18
  ERROR CONTEXT:
  [object Object]run @ angular2-polyfills.js:143zoneBoundFn @ angular2-polyfills.js:111
  </code></pre>