UNPKG
go-fetch-content-type
Version:
latest (0.3.0)
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
Parse the `Content-Type` header.
github.com/go-fetch-js/content-type
go-fetch-content-type
/
example
/
example.js
11 lines
(8 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
var
HttpClient
=
require
(
'go-fetch'
);
var
contentType =
require
(
'..'
);
HttpClient
() .
use
(contentType) .
get
(
'https://api.github.com/repos/go-fetch-js/content-type'
,
function
(
error, response
) {
console
.
log
(error, response.
getContentType
()); }) ;