parse req.type by media-typer
Merge pull request #312 from dead-horse/typer

parse req.type by media-typer
use parseurl
Merge pull request #316 from dead-horse/parseurl

use parseurl