created static method

Response<OutboundDocument> created(
  1. OutboundDocument document,
  2. String location
)

Implementation

static Response created(OutboundDocument document, String location) =>
    Response(StatusCode.created, document: document)
      ..headers['location'] = [location];