UNPKG

httpserialize

Version:

convert http req&resp to plain text (by http protocal)

11 lines (9 loc) 172 B
'use strict'; function textIsRequest(text) { if(text.startWith('HTTP')){ return false; }else{ return true; } } module.exports = textIsRequest;