use mime type for serialize middleware
export request middleware