Asf_Http_RequestInterface

Introduction

获取HTTP数据接口类

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Http\RequestInterface

Class synopsis

<?php
interface Asf_Http_RequestInterface
{
    public function isGet(void)
    public function isPost(void)
    public function isPut(void)
    public function isDelete(void)
    public function isPatch(void)
    public function isHead(void)
    public function isOptions(void)
    public function isCli(void)
    public function isXmlHttpRequest(void)
    public function isTrace(void)
    public function isConnect(void)
    public function isFlashRequest(void)
    public function isPropFind(void)

    public function getParam(string $name, mixed $default)
    public function getParams(void)
    public function getModuleName(void)
    public function getServiceName(void)
    public function getActionName(void)
    public function getMethod(void)
    public function getBaseUri(void)
    public function getRequestUri(void)

    public function getQuery(void)
    public function getPost(void)
    public function getRequest(void)
    public function getFiles(void)
    public function getCookie(void)
    public function getServer(void)
    public function getEnv(void)

    public function hasPost(void)
    public function hasQuery(void)
    public function hasServer(void)
    public function hasFiles(void)
}

Asf_Http_Request

Introduction

Asf_Http_Request 获取 HTTP Request 类

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Http\Request

Class synopsis

(节约页面空间, 省略相同的方法)

<?php
final class Asf_Http_Request implements Asf_Http_RequestInterface
{
    public function __construct(string $base_uri = '', string $request_uri = '')
}