OptionalencryptionEncryption password of its closure function.
Define it only when target backend server is encrypting body data through
@EncryptedRoute or @EncryptedBody decorators of @nestia/core for
security reason.
OptionalfetchCustom fetch function.
If you want to use custom fetch function instead of built-in, assign your
custom fetch function into this property.
For reference, the fetch function has started to be supported since
version 20 of NodeJS. Therefore, if you are using NodeJS version 19 or
lower, you have to assign the node-fetch module into this property.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalheadersHeader values delivered to the remote HTTP server; undefined entries are omitted.
Host address of the remote HTTP server.
OptionalloggerLogger function.
This function is called and awaited after transport and response processing, whether they succeeded or failed. Configuration, body encoding and URL errors that occur before transport do not produce an event. Logger errors are ignored; event input and output share the caller's payload references, so a logger should treat them as read-only.
Event information of the fetch event.
contracts/common.md#principled-implementation The callback receives the event from the transport finally block after completed_at is set. respond_at and status stay null without a response, and output stays undefined if body processing throws. Its rejection is ignored, but its argument includes mutable payload references and its awaiting can delay completion.
contracts/common.md#clear-and-simple-design One optional callback with a single event argument.
OptionaloptionsAdditional options for the fetch function.
OptionalsimulateUse simulation mode.
If you configure this property to be true, your SDK library does not send
any request to remote backend server, but just returns random data
generated by typia.random<T>() function with request data validation.
By the way, to utilize this simulation mode, SDK library must be generated
with INestiaConfig.simulate option, too. Open nestia.config.ts
file, and configure INestiaConfig.simulate property to be true.
Then, newly generated SDK library would have a built-in mock-up data
generator.
Connection information.
IConnectionis an interface type that represents connection information of the remote HTTP server. You can target the remote HTTP server by writing the IConnection.host variable down. Also, you can configure special header values by specializing the IConnection.headers variable.If the remote HTTP server encrypts or decrypts its body data through the AES-128/192/256 algorithm, specify the IConnection.encryption with IEncryptionPassword or IEncryptionPassword.Closure variable.
Author
Jeongho Nam - https://github.com/samchon
Author
Seungjun We - https://github.com/SeungjunWe