modifyBeforeSerialization

A hook called before the input message is marshalled into a (protocol) transport message. This method has the ability to modify and return a new operation request.

When: This will ALWAYS be called once per execution, except when a failure occurs earlier in the request pipeline.

Modifications: This request may have been modified by earlier modifyBeforeSerialization hooks, and may be modified further by later ones.

Error Behavior: If errors are raised by this hook, execution will jump to modifyBeforeCompletion with the raised error as the ResponseInterceptorContext.response result.