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.
|
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.Copyright © 2016. All rights reserved.