UNPKG

go-fetch-content-type

Version:

Parse the `Content-Type` header.

11 lines (8 loc) 256 B
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()); }) ;