Overview

Namespaces

  • api
  • config
  • database
  • PHP
  • Slim
    • Exception
    • Http
    • Middleware
  • utiliy

Classes

  • ContentTypes
  • Flash
  • MethodOverride
  • PrettyExceptions
  • SessionCookie
  • Overview
  • Namespace
  • Class
  • Tree

Class MethodOverride

HTTP Method Override

This is middleware for a Slim application that allows traditional desktop browsers to submit psuedo PUT and DELETE requests by relying on a pre-determined request parameter. Without this middleware, desktop browsers are only able to submit GET and POST requests.

This middleware is included automatically!

Slim\Middleware
Extended by Slim\Middleware\MethodOverride
Namespace: Slim\Middleware
Package: Slim
Author: Josh Lockhart
Since: 1.6.0
Located at thirdparty/Slim/Middleware/MethodOverride.php
Methods summary
public
# __construct( Slim $settings = array() )

Constructor

Constructor

Parameters

$settings
Slim
$app
public array[status,
# call( )

Call

Call

Implements Slim middleware interface. This method is invoked and passed an array of environment variables. This middleware inspects the environment variables for the HTTP method override parameter; if found, this middleware modifies the environment settings so downstream middleware and/or the Slim application will treat the request with the desired HTTP method.

Returns

array[status,
header, body]
Methods inherited from Slim\Middleware
getApplication(), getNextMiddleware(), setApplication(), setNextMiddleware()
Properties summary
protected array $settings
#
Properties inherited from Slim\Middleware
$app, $next
GeoApi API documentation generated by ApiGen 2.8.0