MessageStart()
Description
Creates an instance of MessageStart.
An optional parameter can be provided for its head property.
Syntax
new MessageStart()new MessageStart(head)
Parameters
new MessageStart(head?)
head?
An object containing protocol-dependent message header.
Return Value
A MessageStart object with the specified message header.
Example
// Create a MessageStart for an HTTP requestnew MessageStart({method: 'POST',path: '/api/v1/order',headers: {'host': 'example.com''content-type': 'application/json',}})