tweak and optimize http module
add two annotaions
fix samples