public class HttpSupport.HttpBuilder extends Object
Modifier and Type | Method and Description |
---|---|
HttpSupport.HttpBuilder |
contentType(String contentType)
Sets content type of response.
|
protected org.javalite.activeweb.ControllerResponse |
getControllerResponse() |
HttpSupport.HttpBuilder |
header(String name,
String value)
Sets a HTTP header on response.
|
void |
status(int status)
Overrides HTTP status with a different value.
|
void |
statusCode(int status)
Alias to
status(int) . |
protected org.javalite.activeweb.ControllerResponse getControllerResponse()
public HttpSupport.HttpBuilder contentType(String contentType)
contentType
- content type value.public HttpSupport.HttpBuilder header(String name, String value)
name
- name of header.value
- value of header.public void status(int status)
status
- HTTP status code.public void statusCode(int status)
status(int)
.status
- response code.Copyright © 2019 JavaLite. All rights reserved.