Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RuleModule

Hierarchy

  • RuleModule

Index

Properties

Optional summary

summary: string

Introduction of this rule file. AnyProxy will read this field and give some tip to user.

Methods

Optional beforeDealHttpsRequest

  • When receiving https request, AnyProxy will call beforeDealHttpsRequest with param requestDetail. If configed with forceProxyHttps in launching, AnyProxy will skip calling this method. Only by returning true, AnyProxy will try to replace the certificate and intercept the https request.

    Parameters

    Returns MaybePromise<boolean>

Optional beforeSendRequest

Optional beforeSendResponse

Optional onConnectError

Optional onError

  • AnyProxy will call this method when an error happened in request handling. Errors usually are issued during requesting, e.g. DNS failure, request timeout.

    Parameters

    Returns MaybePromise<BeforeSendResponseResult>

Generated using TypeDoc