setContentLength method

void setContentLength(
  1. dynamic length
)
  • Set the MediaType media type of the body,
    • as specified by the Content-Type header.

Implementation

void setContentLength(length) {
		this.set(HttpHeaders.CONTENT_LENGTH, length);
	}