A B C D E F G H I O P R S T V 
All Classes All Packages

A

Adapter - Interface in io.github.espresso4j.espresso
 

B

body() - Method in class io.github.espresso4j.espresso.Response
Get the stored body
body(IntoBody<T>) - Method in class io.github.espresso4j.espresso.Response
Set body to a IntoBody implementation
body(File) - Method in class io.github.espresso4j.espresso.Response
Set body using a java.io.File
body(InputStream) - Method in class io.github.espresso4j.espresso.Response
Set body from an java.io.InputStream
body(String) - Method in class io.github.espresso4j.espresso.Response
Set body as a string
body(Iterator<String>) - Method in class io.github.espresso4j.espresso.Response
Set body from a string iterator, each string within the iterator will be write into http body

C

call(Request) - Method in interface io.github.espresso4j.espresso.Espresso
 
call(Request, Consumer<Response>, Consumer<Exception>) - Method in interface io.github.espresso4j.espresso.Espresso.Async
 
copyStream(InputStream, OutputStream) - Static method in class io.github.espresso4j.espresso.internal.IoUtils
 

D

DELETE - io.github.espresso4j.espresso.Request.Method
 

E

Espresso - Interface in io.github.espresso4j.espresso
 
Espresso.Async - Interface in io.github.espresso4j.espresso
 
extension(Class<?>) - Method in class io.github.espresso4j.espresso.ExtensionHolder
Get extension for a particular middleware
extension(Class<?>, Object) - Method in class io.github.espresso4j.espresso.ExtensionHolder
Set extension
ExtensionHolder - Class in io.github.espresso4j.espresso
Holds some extension that middlewares write into.
ExtensionHolder() - Constructor for class io.github.espresso4j.espresso.ExtensionHolder
 
extensions() - Method in class io.github.espresso4j.espresso.ExtensionHolder
Get the stored extensions

F

from(File) - Static method in interface io.github.espresso4j.espresso.IntoBody
 
from(InputStream) - Static method in interface io.github.espresso4j.espresso.IntoBody
 
from(String) - Static method in interface io.github.espresso4j.espresso.IntoBody
 
from(String) - Static method in enum io.github.espresso4j.espresso.Request.Method
 
from(String) - Static method in enum io.github.espresso4j.espresso.Request.Scheme
 
from(Iterator<String>) - Static method in interface io.github.espresso4j.espresso.IntoBody
 

G

get() - Method in interface io.github.espresso4j.espresso.IntoBody
 
get() - Method in class io.github.espresso4j.espresso.IntoBody.IntoBodyAdapter
 
GET - io.github.espresso4j.espresso.Request.Method
 
getBody() - Method in class io.github.espresso4j.espresso.Request
Get HTTP request body as InputStream
getHeaders() - Method in class io.github.espresso4j.espresso.Request
Get request headers
getProtcol() - Method in class io.github.espresso4j.espresso.Request
Get the protocol line of http request, http/1.1 or http/2 for example.
getQueryString() - Method in class io.github.espresso4j.espresso.Request
Get the query string part of request URL, typically it's the string after "?"
getRemoteAddr() - Method in class io.github.espresso4j.espresso.Request
Get the client address string
getRequestMethod() - Method in class io.github.espresso4j.espresso.Request
Get the HTTP request method
getScheme() - Method in class io.github.espresso4j.espresso.Request
Get the request scheme, HTTP or HTTPS
getServerName() - Method in class io.github.espresso4j.espresso.Request
Get the hostname of current server
getServerPort() - Method in class io.github.espresso4j.espresso.Request
Get the serving port of current server
getSslClientCert() - Method in class io.github.espresso4j.espresso.Request
Get the TLS client certificate if available
getUri() - Method in class io.github.espresso4j.espresso.Request
Get the request URI

H

HEAD - io.github.espresso4j.espresso.Request.Method
 
header(String, String) - Method in class io.github.espresso4j.espresso.Response
Set header by key and value
headers() - Method in class io.github.espresso4j.espresso.Response
Get the headers stored in this response
HTTP - io.github.espresso4j.espresso.Request.Scheme
 
HTTPS - io.github.espresso4j.espresso.Request.Scheme
 

I

into(OutputStream) - Method in class io.github.espresso4j.espresso.IntoBody.FileBody
 
into(OutputStream) - Method in interface io.github.espresso4j.espresso.IntoBody
 
into(OutputStream) - Method in class io.github.espresso4j.espresso.IntoBody.StreamBody
 
into(OutputStream) - Method in class io.github.espresso4j.espresso.IntoBody.StringBody
 
into(OutputStream) - Method in class io.github.espresso4j.espresso.IntoBody.StringIteratorBody
 
IntoBody<T> - Interface in io.github.espresso4j.espresso
 
IntoBody.FileBody - Class in io.github.espresso4j.espresso
 
IntoBody.IntoBodyAdapter<T> - Class in io.github.espresso4j.espresso
 
IntoBody.StreamBody - Class in io.github.espresso4j.espresso
 
IntoBody.StringBody - Class in io.github.espresso4j.espresso
 
IntoBody.StringIteratorBody - Class in io.github.espresso4j.espresso
 
IntoBodyAdapter() - Constructor for class io.github.espresso4j.espresso.IntoBody.IntoBodyAdapter
 
io.github.espresso4j.espresso - package io.github.espresso4j.espresso
 
io.github.espresso4j.espresso.internal - package io.github.espresso4j.espresso.internal
 
IoUtils - Class in io.github.espresso4j.espresso.internal
 
IoUtils() - Constructor for class io.github.espresso4j.espresso.internal.IoUtils
 

O

of(int) - Static method in class io.github.espresso4j.espresso.Response
Build a response instance from a status code
OPTION - io.github.espresso4j.espresso.Request.Method
 

P

POST - io.github.espresso4j.espresso.Request.Method
 
PUT - io.github.espresso4j.espresso.Request.Method
 

R

Request - Class in io.github.espresso4j.espresso
Espresso request
Request() - Constructor for class io.github.espresso4j.espresso.Request
 
Request.Method - Enum in io.github.espresso4j.espresso
 
Request.Scheme - Enum in io.github.espresso4j.espresso
 
Response - Class in io.github.espresso4j.espresso
The HTTP response object.
Response() - Constructor for class io.github.espresso4j.espresso.Response
 

S

setBody(InputStream) - Method in class io.github.espresso4j.espresso.Request
Set the HTTP request body
setHeaders(Map<String, String>) - Method in class io.github.espresso4j.espresso.Request
Set the request headers
setProtcol(String) - Method in class io.github.espresso4j.espresso.Request
Set the protocol line
setQueryString(String) - Method in class io.github.espresso4j.espresso.Request
Set the query string
setRemoteAddr(String) - Method in class io.github.espresso4j.espresso.Request
Set the client address string
setRequestMethod(Request.Method) - Method in class io.github.espresso4j.espresso.Request
Set the request method
setScheme(Request.Scheme) - Method in class io.github.espresso4j.espresso.Request
Set current request scheme, HTTP or HTTPS
setServerName(String) - Method in class io.github.espresso4j.espresso.Request
Set the hostname of current server
setServerPort(Integer) - Method in class io.github.espresso4j.espresso.Request
Set the serving port of current server
setSslClientCert(X509Certificate) - Method in class io.github.espresso4j.espresso.Request
Set the certificate for current request if any
setUri(String) - Method in class io.github.espresso4j.espresso.Request
Set the request URI
start(Espresso) - Method in interface io.github.espresso4j.espresso.Adapter
 
start(Espresso.Async) - Method in interface io.github.espresso4j.espresso.Adapter
 
status() - Method in class io.github.espresso4j.espresso.Response
Get to status code stored in this response
status(Integer) - Method in class io.github.espresso4j.espresso.Response
Set the status code.
stop() - Method in interface io.github.espresso4j.espresso.Adapter
 

T

toString() - Method in class io.github.espresso4j.espresso.IntoBody.FileBody
 
toString() - Method in class io.github.espresso4j.espresso.IntoBody.StreamBody
 
toString() - Method in class io.github.espresso4j.espresso.IntoBody.StringBody
 
toString() - Method in class io.github.espresso4j.espresso.IntoBody.StringIteratorBody
 
toString() - Method in class io.github.espresso4j.espresso.Request
 
toString() - Method in class io.github.espresso4j.espresso.Response
 

V

valueOf(String) - Static method in enum io.github.espresso4j.espresso.Request.Method
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.github.espresso4j.espresso.Request.Scheme
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.github.espresso4j.espresso.Request.Method
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.github.espresso4j.espresso.Request.Scheme
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E F G H I O P R S T V 
All Classes All Packages