Functional regularity properties for light rays in general relativity