changed to using constant value from net/http package
refactored the two types into their own files