Namespace: Request

Utils. Request

Methods


<static> isBatch(request)

Determines if the passed request is a batch request
Parameters:
Name Type Description
request Object The request
Source:
Returns:
Type
Boolean

<static> isNotification(request)

Determines if the passed request is a notification request
Parameters:
Name Type Description
request Object The request
Source:
Returns:
Type
Boolean

<static> isValidRequest(request [, version])

Determines if the passed request is a valid JSON-RPC Request
Parameters:
Name Type Argument Default Description
request Object The request
version Number <optional>
2 JSON-RPC version 1 or 2
Source:
Returns:
Type
Boolean

<static> isValidVersionOneRequest(request)

Determines if the passed request is a valid JSON-RPC 1.0 Request
Parameters:
Name Type Description
request Object The request
Source:
Returns:
Type
Boolean

<static> isValidVersionTwoRequest(request)

Determines if the passed request is a valid JSON-RPC 2.0 Request
Parameters:
Name Type Description
request Object The request
Source:
Returns:
Type
Boolean