Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 1.26 KB

protocol.md

File metadata and controls

52 lines (32 loc) · 1.26 KB

Notes for APISIX ext-plugin

Plugin Lifecycle

ParseConf

  • ParseConf is called when the configuration is changed.
  • Its output is unique per route.

Filter

  • Filter is called when a request hits the route

Plugin Runner Lifecycle

SETUP_RUNNER

setup_runner: APISIX runs the plugin runner as a subprocess (spawn_proc ext-plugin.cmd)

RPC_PREPARE_CONF

phase_func(): failed to receive RPC_PREPARE_CONF: timeout, client: 127.0.0.1, server: _, request: "GET /test HTTP/1.1", host: "127.0.0.1:9080"

RPC_HTTP_REQ_CALL

Data

HeaderLen = 4

  • TY: First byte
  • Length: 3 Bytes

TY

RPCError = 0
RPCPrepareConf = 1
RPCHTTPReqCall = 2

Flatbuffers

References