---
name: "Jifty::Server"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "0.91117+dfsg-3"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Server"
---

# Jifty::Server(3pm)

Stand-alone server implementation for Jifty

## NAME

Jifty::Server - Stand-alone server implementation for Jifty

## SYNOPSIS

```
  use Jifty::Server;
  my $server = Jifty::Server->new();
  $server->run();
```

## DESCRIPTION

`"Jifty::Server"` is a subclass of HTTP::Server::Simple which creates a handy standalone web server for a lightweight Jifty application.

## METHODS

### new

Creates a new `"Jifty::Server"` object.

### setup\_jifty

Sets up the Jifty singleton.  This is called automatically by "new".

### handle\_request CGI

Calls "handle\_request" in Jifty::Handler with the CGI object.  If running tests, send test warnings on specific requests.

### send\_http\_status

Sends the HTTP status header.

### print\_banner

Overrives HTML::Server::Simple::Mason's print\_banner to use the logging framework to record the server's startup

### recorder\_prefix

Returns the filename prefix used if HTTP::Server::Simple::Recorder support is being used.

### recording\_on

Sets this server to use HTTP::Server::Simple::Recorder.

(See also the `"JIFTY_RECORD"` environment variable and the `"-r"` switch to `"standalone_server"`.)

### after\_setup\_listener

If `$ENV{JIFTY_SERVER_SIGREADY}` is set, send the signal to the parent when the server is ready for requests.

### restart

Sets up the arguments needed for restarting the server using `"jifty server"`.

### close\_client\_sockets

Closes all active client connections.

### started\_ok

After starting, ensure we have a different database socket from the server.
