class Sinatra::Base

def build(builder, *args, &bk)

an instance of this class as end point.
Creates a Rack::Builder instance with all the middleware set up and
def build(builder, *args, &bk)
  setup_default_middleware builder
  setup_middleware builder
  builder.run new!(*args, &bk)
  builder
end