| Package | Description |
|---|---|
| express.http.response | |
| express.utils |
| Modifier and Type | Method and Description |
|---|---|
void |
Response.setContentType(MediaType contentType)
Set the contentType for this response.
|
boolean |
Response.streamFrom(long contentLength,
InputStream is,
MediaType mediaType)
Streams a inputstream to the client.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaType.getByExtension(String extension) |
static MediaType |
Utils.getContentType(Path file)
Returns the MIME-Type of an file.
|
static MediaType |
MediaType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MediaType[] |
MediaType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Copyright © 2019. All rights reserved.