Uses of Class
org.microproxy.starlark.ScriptedProxy.Builder
Packages that use ScriptedProxy.Builder
-
Uses of ScriptedProxy.Builder in org.microproxy.starlark
Methods in org.microproxy.starlark that return ScriptedProxy.BuilderModifier and TypeMethodDescriptionstatic ScriptedProxy.BuilderA proxy driven bysource, for embedding and tests.static ScriptedProxy.BuilderA proxy driven by the script infile.Adds read-only globals the script can use, such as tokens or host lists that should not be written into the script.ScriptedProxy.Builder.fallback(ChainedProxyManager fallback) Routes requests when the script has noupstreamfunction or it returnsNone; by default such requests connect directly.ScriptedProxy.Builder.limits(StarlarkScript.Limits limits) Step and time limits for each hook call.ScriptedProxy.Builder.maxBodySize(int maxBodySize) The most body bytes buffered for a script (default 10 MiB).ScriptedProxy.Builder.observer(ScriptCallObserver observer) Shows every call into the script toobserver: when it starts, and its steps, bytes of values created, time and error when it ends (seeScriptCallObserver).ScriptedProxy.Builder.protoSchema(ProtoSchema schema) A protobuf schema for the script'sprotobufandgrpcmodules: with it,protobuf.decode(data, type="pkg.Message")keys fields by name andprotobuf.encode(fields, type="pkg.Message")takes names.ScriptedProxy.Builder.reload(boolean reload) Re-read the file when it changes (default true).ScriptedProxy.Builder.stats(StatsRegistry stats) The registry the script'sstatsmodule counts into, asscript.<name>(ScriptStats); usually the proxy's (HttpProxyServerBootstrap.getStats()).The name the script'shooks.starlark.*stats are tagged with (microproxy_script); by default its file name without.star.