Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 330 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 330 Bytes

a Http service for frontend made by rxjs and typescript

support GET、PUT、POST、DELETE

http.get<{ name: string }, { id: number }>('/man, { id: 123}) .do( res => console.log( res.name )) .subscribe( )

node app.js

localhost:4000

see console

[ usage ] test.ts

[ origin code ] http-v2.service.ts