Skip to content

Where to get the request content length from #3

@TheBestMoshe

Description

@TheBestMoshe

When initialized like the readme, the content size is not reported to Firebase.
I've figured out how to set the response content length

    final performanceInterceptor = DioFirebasePerformanceInterceptor(
        responseContentLengthMethod: (Response response) {
      return int.parse(response.headers['content-length'][0]);
    });

There is also a parameter requestContentLengthMethod, however how do I get the content longth of the request. I'm not seing anything in the RequestOptions object. Do we need to somehow calculate this on our own?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions