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.

  • 相关阅读:
    Django----路由控制
    Django-ORM的使用
    Django-ORM框架
    Django对数据库表的操作
    Python操作mysql
    [mysql]linux mysql 基础命令操作
    [mysql]linux mysql 读写分离
    [mysql]linux mysql 主从复制
    [mysql 1]linux mysal 安装
    [mysql]linux mysal 安装
  • 原文地址:https://www.cnblogs.com/chunguang/p/5643194.html
Copyright © 2011-2022 走看看