RequestDto

Describes one outbound HTTP request. You don't usually instantiate it directly: you call application.getRequestDto(...) which returns a RequestDto with the right auth headers attached.

import RequestDto from '@orchesty/nodejs-sdk/dist/lib/Transport/Curl/RequestDto';

Constructor #

new RequestDto(
    url: string,
    method: HttpMethods,
    debugInfo: ProcessDto,
    body?: string,
    headers?: Record<string, string>,
)

Methods provided #

MethodReturnsPurpose
getUrl() / setUrl(url)string / thisTarget URL.
getMethod() / setMethod(m)HttpMethods / thisHTTP method.
getHeaders() / setHeaders(h)Record<string,string> / thisRequest headers.
getBody() / setBody(b)string / thisRaw request body.
getDebugInfo()ProcessDtoProcess context, used by transport for correlation/logging.

See also #

© 2025 Orchesty Solutions. All rights reserved.