Overview

Namespaces

  • LeanCloud
    • Engine
    • Operation
    • Storage
    • Uploader

Classes

  • Cloud
  • LaravelEngine
  • LeanEngine
  • SlimEngine

Exceptions

  • FunctionError
  • Overview
  • Namespace
  • Class

Class LeanEngine

Direct known subclasses

LeanCloud\Engine\LaravelEngine, LeanCloud\Engine\SlimEngine
Namespace: LeanCloud\Engine
Located at LeanCloud/Engine/LeanEngine.php
Methods summary
protected string|null
# getHeaderLine( string $key )

Get header value

Get header value

Parameters

$key

Returns

string|null
protected LeanCloud\Engine\LeanEngine
# withHeader( string $key, string $val )

Set header

Set header

Parameters

$key
Header key
$val
Header val

Returns

LeanCloud\Engine\LeanEngine
protected
# send( string $body, string $status )

Send response with body and status code

Send response with body and status code

Parameters

$body
Response body
$status
Response status
protected
# redirect( string $url )

Redirect to URL

Redirect to URL

Parameters

$url
protected string
# getBody( )

Get request body string

Get request body string

It reads body from php://input, which has cavets that it could be read only once prior to php 5.6. Thus it is recommended to override this method in subclass.

Returns

string
protected
# dispatch( string $method, string $url )

Dispatch LeanEngine functions.

Dispatch LeanEngine functions.

Parameters

$method
Request method
$url
Request url
public
# start( )

Start engine and process request

Start engine and process request

public static
# enableHttpsRedirect( )

Enable https redirect

Enable https redirect

Properties summary
protected static boolean $useHttpsRedirect

Redirect to https or not

Redirect to https or not

# false
protected array $env

Parsed LeanEngine env variables

Parsed LeanEngine env variables

# array()
API documentation generated by ApiGen