Add typespecs to cowboy adapter