server: rearrange
Break responseWriter into small and large parts.