public class JSResponse extends AbstractJSWrapper
| Modifier and Type | Field and Description |
|---|---|
Object |
content |
String |
encoding |
HashMap<String,String> |
headers |
String |
statusCode |
engine| Constructor and Description |
|---|
JSResponse(ScriptEngine engine,
String text,
String code,
HashMap<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
void |
end() |
String |
getEncoding() |
JSResponse |
on(Object options,
Object callback) |
void |
setEncoding(String encoding) |
eval, eval, getBindingspublic String encoding
public String statusCode
public Object content
public void end()
public String getEncoding()
public void setEncoding(String encoding)
public JSResponse on(Object options, Object callback)
Copyright © 2016 RAML. All rights reserved.