avoid allocate unnecessary new objects
Merge pull request #402 from xuwei-k/request/no-allocate

avoid allocate unnecessary new objects