setLocation method

void setLocation(
  1. String location
)

Sets the Location header.

Implementation

void setLocation(String location) {
  setHeader(HttpHeaders.locationHeader, location);
}