# ri > Rack::Server

---
type: CommandReference
command: Rack::Server
mode: ri
section: ''
source: ri
---

## Quick Reference

- `Rack::Server.new` — Create a new server instance
- `Rack::Server.start` — Start the server
- `Rack::Server.default_options` — Get default options
- `Rack::Server.middleware` — Get middleware
- `Rack::Server#app` — Get the application
- `Rack::Server#options` — Get/set options

## Name

Rack::Server — Rack server class (inherits from Object)

## Synopsis

ruby
server = Rack::Server.new(options)
server.start
## Class Methods

- `new` — Create a new server instance
- `start` — Start the server
- `default_middleware_by_environment` — Default middleware by environment
- `logging_middleware` — Logging middleware
- `middleware` — Middleware

## Instance Methods

- `app` — Get the application
- `default_options` — Get default options
- `middleware` — Get middleware
- `options` — Get options
- `server` — Get the server handler
- `start` — Start the server

## Attributes

- `options` (attr_writer) — Set options