What happens to your body when you eat right before hitting bed?

The first and most obvious point that you need to keep in mind is that the food in your belly needs to be digested before you sleep. But is it even possible in todays world? Because the first thing you ever want to do after eating is to lay down and rest.