@FunctionalInterface public interface IAS2HttpResponseHandler
| Modifier and Type | Method and Description |
|---|---|
void |
sendHttpResponse(int nHttpResponseCode,
com.helger.commons.http.HttpHeaderMap aHeaders,
com.helger.commons.io.IWriteToStream aData)
Added an HTTP header to the response.
|
void sendHttpResponse(@Nonnegative int nHttpResponseCode, @Nonnull com.helger.commons.http.HttpHeaderMap aHeaders, @Nonnull @WillNotClose com.helger.commons.io.IWriteToStream aData) throws IOException
nHttpResponseCode - The HTTP response code. E.g. 200 for "HTTP OK". Must be > 0.aHeaders - Headers to use. May not be null.aData - Data to send as response body. May not be null but may
be empty.IOException - In case of errorCopyright © 2013–2022 Philip Helger. All rights reserved.