@serenity-is/corelib / getServiceOptions
Function: getServiceOptions()
getServiceOptions<
TResponse>(options):ServiceOptions<TResponse>
Defined in: src/base/services.ts:76
Normalizes and enriches a ServiceOptions object with defaults and derived values.
Applies default method (POST), allowRedirect/async/blockUI flags, resolves service/url,
and injects Accept, Content-Type and same-origin X-CSRF-TOKEN headers.
Type Parameters
TResponse
TResponse extends ServiceResponse
Expected service response type.
Parameters
options
ServiceOptions<TResponse>
Raw service options supplied by the caller.
Returns
ServiceOptions<TResponse>
The normalized options object with url resolved and headers populated.