extraction.md


category: Concept redirect_from: - /docs/v0.4.0/concept/extraction/ - /docs/latest/concept/extraction/ title: “变量提取器” sort_title: “6” —

每个提取器的格式如下:

{
    "type": "",
    "name": ""
},

实例:

{
    "type": "Query",
    "name": "username"
},
{
    "type": "Header",
    "name": "id"
} 

以下针对每个条件的格式作解释:

type即要提取的数据来源,目前包括以下几种:

  • Header K/V
  • Query K/V
  • Post Params K/V
  • Host
  • URI
  • IP
  • Method

name指的是如果是K/V行的提取来源,name指要提取的key

如以下示例要提取QueryString里的username这个变量:

{
    "type": "Query",
    "name": "username"
}

糖果

糖果
LUA从入门到放弃

Tweyseo Walkonluajit 1

# **0. 背景**## **a. 目的**这里主要研究LuaJIT的Trace的相关原理,并且展示如何使用LuaJIT提供的[v.lua](https://github.com/LuaJIT/LuaJIT/blob/master/src/jit/v.lua)和[dump...… Continue reading

Nginx+Lua中文WIKI

Published on March 14, 2019