beforeAddRequestBody method
Implementation
@override
void beforeAddRequestBody(HttpClientRequest request) {
if (lockInfo != null) {
request.headers.contentType = XmlContentType.applicationXml;
}
final depth = this.depth;
if (depth != null) {
request.headers.add(Depth.headerKey, depth.name);
}
final timeout = this.timeout;
if (timeout != null) {
request.headers.add("Timeout", timeout.toString());
}
final condition = this.condition;
if (condition != null) {
request.headers.add("If", condition.toString());
}
}