Manual Reference Source Test
public class | source

RequestMatcher

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

and: *

public get
public

fixture: *

public get

on: *

public get

respond: *

Private Members
private
private

Method Summary

Public Methods
public

body(type: string): *

public

equal(conditions: *): *

public

getProcessor(key: *): *

public

header(name: *): *

public

async match(request: *, server: *): boolean

Public Constructors

public constructor() source

Public Members

public get and: * source

public get fallback source

public fixture: * source

public get on: * source

public get respond: * source

Private Members

private _processors: * source

private _requestKeys: * source

Public Methods

public body(type: string): * source

Params:

NameTypeAttributeDescription
type string
  • optional
  • default: text

Return:

*

public equal(conditions: *): * source

Params:

NameTypeAttributeDescription
conditions *

Return:

*

public getProcessor(key: *): * source

Params:

NameTypeAttributeDescription
key *

Return:

*

public header(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public async match(request: *, server: *): boolean source

Params:

NameTypeAttributeDescription
request *
server *

Return:

boolean