UNPKG

@yuebai008/cli

Version:

Command line interface for rapid qg-minigame development

1 lines 1.29 kB
export var UIHeaderSection;!function(e){e.General="General",e.Request="Request",e.Response="Response"}(UIHeaderSection||(UIHeaderSection={}));export var UIRequestTabs;!function(e){e.Cookies="cookies",e.EventSource="eventSource",e.Headers="headers",e.HeadersComponent="headersComponent",e.Payload="payload",e.Initiator="initiator",e.Preview="preview",e.Response="response",e.Timing="timing",e.TrustTokens="trustTokens",e.WsFrames="webSocketFrames"}(UIRequestTabs||(UIRequestTabs={}));export class UIRequestLocation{request;header;searchMatch;isUrlMatch;tab;filterOptions;constructor(e,t,s,o,n,a){this.request=e,this.header=t,this.searchMatch=s,this.isUrlMatch=o,this.tab=n,this.filterOptions=a}static requestHeaderMatch(e,t){return new UIRequestLocation(e,{section:UIHeaderSection.Request,header:t},null,!1,void 0,void 0)}static responseHeaderMatch(e,t){return new UIRequestLocation(e,{section:UIHeaderSection.Response,header:t},null,!1,void 0,void 0)}static bodyMatch(e,t){return new UIRequestLocation(e,null,t,!1,void 0,void 0)}static urlMatch(e){return new UIRequestLocation(e,null,null,!0,void 0,void 0)}static header(e,t,s){return new UIRequestLocation(e,{section:t,header:{name:s,value:""}},null,!1,void 0,void 0)}static tab(e,t,s){return new UIRequestLocation(e,null,null,!1,t,s)}}