Class

AddRequestHeader

AddRequestHeader()

Constructor

# new AddRequestHeader()

Sets header fields common to all bosdyn.api requests.

View Source bosdyn-client/processors.js, line 6

Methods

# mutate(request) → {void}

Mutate request such that its header contains a client name and a timestamp. Headers are not required for third party proto requests/responses.
Parameters:
Name Type Description
request * Request to apply the header.

View Source bosdyn-client/processors.js, line 34

void

AddRequestHeader(client_name_func)

Constructor

# new AddRequestHeader(client_name_func)

Constructor, takes function to access the client name to insert into request headers.
Parameters:
Name Type Description
client_name_func function Function to get client's name.

View Source bosdyn-client/processors.js, line 15

Methods

# mutate(request) → {void}

Mutate request such that its header contains a client name and a timestamp. Headers are not required for third party proto requests/responses.
Parameters:
Name Type Description
request * Request to apply the header.

View Source bosdyn-client/processors.js, line 34

void