-
Notifications
You must be signed in to change notification settings - Fork 0
Controller
Olaf Erlandsen edited this page Aug 3, 2018
·
2 revisions
if (this.request.hasIn('content-type', 'header') {
// ...
}
const contentType = this.request.getIn('content-type', 'header');
this.request.setIn('content-type', 'header', 'application/json; charset=utf8');
this.request.bodyAsJson();
this.response.ok();
this.response.badRequest();
this.response.internalServerError();
this.response.noContent();
this.response.accepted();
this.response.notFound();
this.response.unauthorized();
this.response.forbidden();
this.response.methodNotAllowed();
this.response.redirect();