beforeAddRequestBody method

  1. @override
void beforeAddRequestBody(
  1. HttpClientRequest request
)
override

Implementation

@override
void beforeAddRequestBody(HttpClientRequest request) {
  final depth = this.depth;
  if (depth != null) {
    request.headers.add(Depth.headerKey, depth.name);
  }
  addIfHeader(request.headers);
}