Package org.eclipse.jetty.client.api
Interface Response.HeaderListener
-
- All Superinterfaces:
java.util.EventListener
,Response.ResponseListener
- All Known Subinterfaces:
Response.Listener
- All Known Implementing Classes:
AsyncMiddleManServlet.ProxyResponseListener
,BufferingResponseListener
,ContinueProtocolHandler.ContinueListener
,FutureResponseListener
,InputStreamResponseListener
,ProxyServlet.ProxyResponseListener
,RedirectProtocolHandler
,Response.Listener.Adapter
- Enclosing interface:
- Response
public static interface Response.HeaderListener extends Response.ResponseListener
Listener for a response header event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onHeader(Response response, HttpField field)
Callback method invoked when a response header has been received and parsed, returning whether the header should be processed or not.
-
-
-
Method Detail
-
onHeader
boolean onHeader(Response response, HttpField field)
Callback method invoked when a response header has been received and parsed, returning whether the header should be processed or not.- Parameters:
response
- the response containing the response line data and the headers so farfield
- the header received- Returns:
- true to process the header, false to skip processing of the header
-
-