Class

Rack::ContentType

Inheritance
< Object

Sets the Content-Type header on responses which don‘t have one.

Builder Usage:

  use Rack::ContentType, "text/plain"

When no content type argument is provided, "text/html" is assumed.

Methods

Class

Visibility Signature
public new (app, content_type = "text/html")

Instance

Visibility Signature
public call (env)

Class Method Detail

new(app, content_type = "text/html")

Instance Method Detail

call(env)