Interface ResponseMarshaler.Builder.HeadHandler
- Enclosing class:
ResponseMarshaler.Builder
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Function used to support pluggable implementations of
ResponseMarshaler.forHead(Request, MarshaledResponse).- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionhandle(Request request, MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEADrequest.
-
Method Details
-
handle
@Nonnull MarshaledResponse handle(@Nonnull Request request, @Nonnull MarshaledResponse getMethodMarshaledResponse) Prepares a response for an HTTPHEADrequest.Detailed documentation is available at https://www.soklet.com/docs/response-writing#http-head.
- Parameters:
request- the HTTP requestgetMethodMarshaledResponse- the binary data that would have been sent over the wire for an equivalentGETrequest (necessary in order to write theContent-Lengthheader for aHEADresponse)- Returns:
- the response to be sent over the wire
-