zoukankan      html  css  js  c++  java
  • HelpersRequest

    HelpersRequest

    The HelpersRequest class is used for detecting the type of request and retrieving the request.

    getMethod()

    Request::getMethod()

    Returns either GET or POST, depending if a $_GET request or a $_POST request has happened.

    getIpAddress()

    Request::getIpAddress()

    Returns the client's IP Address.

    post()

    Request::post($key)

    Returns the post key.

    get()

    Request::get($key)

    Returns the get key.

    server()

    Request::server($key)

    Returns the server key.

    headers()

    Request::headers($key)

    Returns the HTTP Request Headers key.

    files()

    Request::files($key)

    Returns the file key.

    put()

    Request::put($key)

    Returns the put key.

    isAjax()

    Request::isAjax()

    Detect if the request is a ajax request.

    isPost()

    Request::isPost()

    Detect if the request is a post request.

    isGet()

    Request::isGet()

    Detect if the request is a get request.

    isHead()

    Request::isHead()

    Detect if the request is a head request.

    isPut()

    Request::isPut()

    Detect if the request is a put request.

    isDelete()

    Request::isDelete()

    Detect if the request is a delete request.

    isOptions()

    Request::isOptions()

    Detect if the request is an options request.

  • 相关阅读:
    CodeForces
    EOJ 3506. 斐波那契数列
    牛客练习赛13 D幸运数字Ⅳ . 康托逆展开
    UVA
    Piggy-Bank HDU
    Dollar Dayz POJ
    UVA 674 Coin Change (完全背包)
    python OOP (1)
    python lambda简易使用
    python whl模块安装方法
  • 原文地址:https://www.cnblogs.com/chunguang/p/5643194.html
Copyright © 2011-2022 走看看