(
options: {
readonly requestId: Snowflake
readonly address: EntityAddress
readonly tag: Rpc.Tag<Rpc>
readonly payload: Rpc.Payload<Rpc>
readonly headers: Headers.Headers
readonly traceId?: string | undefined
readonly spanId?: string | undefined
readonly sampled?: boolean | undefined
}
)
| 173 | * @category constructors |
| 174 | */ |
| 175 | export const makeRequest = <Rpc extends Rpc.Any>( |
| 176 | options: { |
| 177 | readonly requestId: Snowflake |
| 178 | readonly address: EntityAddress |
| 179 | readonly tag: Rpc.Tag<Rpc> |
| 180 | readonly payload: Rpc.Payload<Rpc> |
| 181 | readonly headers: Headers.Headers |
| 182 | readonly traceId?: string | undefined |
| 183 | readonly spanId?: string | undefined |
| 184 | readonly sampled?: boolean | undefined |
| 185 | } |
| 186 | ): Request<Rpc> => ({ |
| 187 | [TypeId]: TypeId, |
| 188 | _tag: "Request", |
| 189 | requestId: options.requestId, |
| 190 | tag: options.tag, |
| 191 | address: options.address, |
| 192 | payload: options.payload, |
| 193 | headers: options.headers, |
| 194 | traceId: options.traceId, |
| 195 | spanId: options.spanId, |
| 196 | sampled: options.sampled |
| 197 | }) |
| 198 | |
| 199 | /** |
| 200 | * @since 1.0.0 |
no outgoing calls
no test coverage detected