Good code for ESP8266 in server mode?

Hi, is there any good code available to handle connections when ESP8266 is in server mode?

With good, I mean non blocking, of course, efficient, flexible, and with sturdy connection handling.

I got an implementation working for a project a while ago (Garage door controller with relay and distance sensor, const int trigPin = 2;const int echoPin = 4;const int relayPin = 6;# - Pastebin.com) which more or less does that, but I wonder if there isn't something universal.

EDIT: I have no idea how I could have overlooked the library. Forget about everything.