Composition Operators on Generalized Hardy Spaces