Xumin
Xumin
It would be helpful to allow this: ```lua pb.custom_encode('bool', function (v) return v and not v == "false" end ``` (I'm not sure if `hook` does what this does so...
Should we also change the id of the service? This service is more fundamental than config.
Fix FTI-3994
Could we have a grammar for that? Something similar to this: ``` arguments = { argument * "," } ipv4 = @{ ASCII_DIGIT{1,3} {3} "." } ``` (There should be...
It would be useful if such an API is provided. Currently, people uses `ngx.req.get_headers()[key]` to get header value for key. This is of low efficiency. If we try to cache...
To reproduce: ```lua location = /t { default_type 'text/test'; access_by_lua_block { ngx.header["Transfer-Encoding"] = "gzip" ngx.say('what') } } ``` (I don't expect the gzip to work, because how could it work...
Maybe we can reuse an HTTP connection to establish a WebSocket client? A direct implementation may be to allow users to pass sock(`ngx.socket.tcp`) as an argument: ```lua function _M.new(self, opts,...
```lua local function contain(state, arguments) local expected = arguments[1] return function(value) return type(value) == "string" and value:find(expected) end end assert:register("matcher", "contain", contain) print(matcher.contain("string")("substring")) -- false ``` It turns out matcher...
And the response could be constants(or default values?), and we query the string representation of requests from another service.
## **DO NOT MERGE!** This PR causes a breaking change. We planed this for 4.0. ### Review Note Please check "Hide whitespace" when reviewing. ### Summary @flrgh: > 1. This...