Package io.servicetalk.http.api
Interface StreamingHttpResponseFactory
- All Known Subinterfaces:
StreamingHttpRequestResponseFactory
- All Known Implementing Classes:
DefaultStreamingHttpRequestResponseFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A factory for creating
StreamingHttpResponses.-
Method Summary
Modifier and TypeMethodDescriptiondefault StreamingHttpResponseaccepted()Create a newHttpResponseStatus.ACCEPTEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.ALREADY_REPORTEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.BAD_GATEWAYresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.BAD_REQUESTresponse.default StreamingHttpResponseconflict()Create a newHttpResponseStatus.CONFLICTresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.CONTINUEresponse.default StreamingHttpResponsecreated()Create a newHttpResponseStatus.CREATEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.EARLY_HINTSresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.EXPECTATION_FAILEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.FAILED_DEPENDENCYresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.FORBIDDENresponse.default StreamingHttpResponsefound()Create a newHttpResponseStatus.FOUNDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.GATEWAY_TIMEOUTresponse.default StreamingHttpResponsegone()Create a newHttpResponseStatus.GONEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.HTTP_VERSION_NOT_SUPPORTEDresponse.default StreamingHttpResponseimUsed()Create a newHttpResponseStatus.IM_USEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.INSUFFICIENT_STORAGEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.INTERNAL_SERVER_ERRORresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.LENGTH_REQUIREDresponse.default StreamingHttpResponselocked()Create a newHttpResponseStatus.LOCKEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.LOOP_DETECTEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.METHOD_NOT_ALLOWEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.MISDIRECTED_REQUESTresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.MOVED_PERMANENTLYresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.MULTIPLE_CHOICESresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.MULTI_STATUSresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.NETWORK_AUTHENTICATION_REQUIREDresponse.newResponse(HttpResponseStatus status) Create a newStreamingHttpResponseobject.default StreamingHttpResponseCreate a newHttpResponseStatus.NO_CONTENTresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.NON_AUTHORITATIVE_INFORMATIONresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.NOT_ACCEPTABLEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.NOT_EXTENDEDresponse.default StreamingHttpResponsenotFound()Create a newHttpResponseStatus.NOT_FOUNDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.NOT_IMPLEMENTEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.NOT_MODIFIEDresponse.default StreamingHttpResponseok()Create a newHttpResponseStatus.OKresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PARTIAL_CONTENTresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PAYLOAD_TOO_LARGEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PAYMENT_REQUIREDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PERMANENT_REDIRECTresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PRECONDITION_FAILEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PRECONDITION_REQUIREDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PROCESSINGresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.PROXY_AUTHENTICATION_REQUIREDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.RANGE_NOT_SATISFIABLEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.REQUEST_TIMEOUTresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.RESET_CONTENTresponse.default StreamingHttpResponseseeOther()Create a newHttpResponseStatus.SEE_OTHERresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.SERVICE_UNAVAILABLEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.SWITCHING_PROTOCOLSresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.TEMPORARY_REDIRECTresponse.default StreamingHttpResponsetooEarly()Create a newHttpResponseStatus.TOO_EARLYresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.TOO_MANY_REQUESTSresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.UNAUTHORIZEDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.UNAVAILABLE_FOR_LEGAL_REASONSresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.UNPROCESSABLE_ENTITYresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.UNSUPPORTED_MEDIA_TYPEresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.UPGRADE_REQUIREDresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.URI_TOO_LONGresponse.default StreamingHttpResponseuseProxy()Create a newHttpResponseStatus.USE_PROXYresponse.default StreamingHttpResponseCreate a newHttpResponseStatus.VARIANT_ALSO_NEGOTIATESresponse.
-
Method Details
-
newResponse
Create a newStreamingHttpResponseobject.- Parameters:
status- TheHttpResponseStatus.- Returns:
- a new
StreamingHttpResponseobject.
-
continueResponse
Create a newHttpResponseStatus.CONTINUEresponse.- Returns:
- a new
HttpResponseStatus.CONTINUEresponse.
-
switchingProtocols
Create a newHttpResponseStatus.SWITCHING_PROTOCOLSresponse.- Returns:
- a new
HttpResponseStatus.SWITCHING_PROTOCOLSresponse.
-
processing
Create a newHttpResponseStatus.PROCESSINGresponse.- Returns:
- a new
HttpResponseStatus.PROCESSINGresponse.
-
earlyHints
Create a newHttpResponseStatus.EARLY_HINTSresponse.- Returns:
- a new
HttpResponseStatus.EARLY_HINTSresponse.
-
ok
Create a newHttpResponseStatus.OKresponse.- Returns:
- a new
HttpResponseStatus.OKresponse.
-
created
Create a newHttpResponseStatus.CREATEDresponse.- Returns:
- a new
HttpResponseStatus.CREATEDresponse.
-
accepted
Create a newHttpResponseStatus.ACCEPTEDresponse.- Returns:
- a new
HttpResponseStatus.ACCEPTEDresponse.
-
nonAuthoritativeInformation
Create a newHttpResponseStatus.NON_AUTHORITATIVE_INFORMATIONresponse.- Returns:
- a new
HttpResponseStatus.NON_AUTHORITATIVE_INFORMATIONresponse.
-
noContent
Create a newHttpResponseStatus.NO_CONTENTresponse.- Returns:
- a new
HttpResponseStatus.NO_CONTENTresponse.
-
resetContent
Create a newHttpResponseStatus.RESET_CONTENTresponse.- Returns:
- a new
HttpResponseStatus.RESET_CONTENTresponse.
-
partialContent
Create a newHttpResponseStatus.PARTIAL_CONTENTresponse.- Returns:
- a new
HttpResponseStatus.PARTIAL_CONTENTresponse.
-
multiStatus
Create a newHttpResponseStatus.MULTI_STATUSresponse.- Returns:
- a new
HttpResponseStatus.MULTI_STATUSresponse.
-
alreadyReported
Create a newHttpResponseStatus.ALREADY_REPORTEDresponse.- Returns:
- a new
HttpResponseStatus.ALREADY_REPORTEDresponse.
-
imUsed
Create a newHttpResponseStatus.IM_USEDresponse.- Returns:
- a new
HttpResponseStatus.IM_USEDresponse.
-
multipleChoices
Create a newHttpResponseStatus.MULTIPLE_CHOICESresponse.- Returns:
- a new
HttpResponseStatus.MULTIPLE_CHOICESresponse.
-
movedPermanently
Create a newHttpResponseStatus.MOVED_PERMANENTLYresponse.- Returns:
- a new
HttpResponseStatus.MOVED_PERMANENTLYresponse.
-
found
Create a newHttpResponseStatus.FOUNDresponse.- Returns:
- a new
HttpResponseStatus.FOUNDresponse.
-
seeOther
Create a newHttpResponseStatus.SEE_OTHERresponse.- Returns:
- a new
HttpResponseStatus.SEE_OTHERresponse.
-
notModified
Create a newHttpResponseStatus.NOT_MODIFIEDresponse.- Returns:
- a new
HttpResponseStatus.NOT_MODIFIEDresponse.
-
useProxy
Create a newHttpResponseStatus.USE_PROXYresponse.- Returns:
- a new
HttpResponseStatus.USE_PROXYresponse.
-
temporaryRedirect
Create a newHttpResponseStatus.TEMPORARY_REDIRECTresponse.- Returns:
- a new
HttpResponseStatus.TEMPORARY_REDIRECTresponse.
-
permanentRedirect
Create a newHttpResponseStatus.PERMANENT_REDIRECTresponse.- Returns:
- a new
HttpResponseStatus.PERMANENT_REDIRECTresponse.
-
badRequest
Create a newHttpResponseStatus.BAD_REQUESTresponse.- Returns:
- a new
HttpResponseStatus.BAD_REQUESTresponse.
-
unauthorized
Create a newHttpResponseStatus.UNAUTHORIZEDresponse.- Returns:
- a new
HttpResponseStatus.UNAUTHORIZEDresponse.
-
paymentRequired
Create a newHttpResponseStatus.PAYMENT_REQUIREDresponse.- Returns:
- a new
HttpResponseStatus.PAYMENT_REQUIREDresponse.
-
forbidden
Create a newHttpResponseStatus.FORBIDDENresponse.- Returns:
- a new
HttpResponseStatus.FORBIDDENresponse.
-
notFound
Create a newHttpResponseStatus.NOT_FOUNDresponse.- Returns:
- a new
HttpResponseStatus.NOT_FOUNDresponse.
-
methodNotAllowed
Create a newHttpResponseStatus.METHOD_NOT_ALLOWEDresponse.- Returns:
- a new
HttpResponseStatus.METHOD_NOT_ALLOWEDresponse.
-
notAcceptable
Create a newHttpResponseStatus.NOT_ACCEPTABLEresponse.- Returns:
- a new
HttpResponseStatus.NOT_ACCEPTABLEresponse.
-
proxyAuthenticationRequired
Create a newHttpResponseStatus.PROXY_AUTHENTICATION_REQUIREDresponse.- Returns:
- a new
HttpResponseStatus.PROXY_AUTHENTICATION_REQUIREDresponse.
-
requestTimeout
Create a newHttpResponseStatus.REQUEST_TIMEOUTresponse.- Returns:
- a new
HttpResponseStatus.REQUEST_TIMEOUTresponse.
-
conflict
Create a newHttpResponseStatus.CONFLICTresponse.- Returns:
- a new
HttpResponseStatus.CONFLICTresponse.
-
gone
Create a newHttpResponseStatus.GONEresponse.- Returns:
- a new
HttpResponseStatus.GONEresponse.
-
lengthRequired
Create a newHttpResponseStatus.LENGTH_REQUIREDresponse.- Returns:
- a new
HttpResponseStatus.LENGTH_REQUIREDresponse.
-
preconditionFailed
Create a newHttpResponseStatus.PRECONDITION_FAILEDresponse.- Returns:
- a new
HttpResponseStatus.PRECONDITION_FAILEDresponse.
-
payloadTooLarge
Create a newHttpResponseStatus.PAYLOAD_TOO_LARGEresponse.- Returns:
- a new
HttpResponseStatus.PAYLOAD_TOO_LARGEresponse.
-
uriTooLong
Create a newHttpResponseStatus.URI_TOO_LONGresponse.- Returns:
- a new
HttpResponseStatus.URI_TOO_LONGresponse.
-
unsupportedMediaType
Create a newHttpResponseStatus.UNSUPPORTED_MEDIA_TYPEresponse.- Returns:
- a new
HttpResponseStatus.UNSUPPORTED_MEDIA_TYPEresponse.
-
rangeNotSatisfiable
Create a newHttpResponseStatus.RANGE_NOT_SATISFIABLEresponse.- Returns:
- a new
HttpResponseStatus.RANGE_NOT_SATISFIABLEresponse.
-
expectationFailed
Create a newHttpResponseStatus.EXPECTATION_FAILEDresponse.- Returns:
- a new
HttpResponseStatus.EXPECTATION_FAILEDresponse.
-
misdirectedRequest
Create a newHttpResponseStatus.MISDIRECTED_REQUESTresponse.- Returns:
- a new
HttpResponseStatus.MISDIRECTED_REQUESTresponse.
-
unprocessableEntity
Create a newHttpResponseStatus.UNPROCESSABLE_ENTITYresponse.- Returns:
- a new
HttpResponseStatus.UNPROCESSABLE_ENTITYresponse.
-
locked
Create a newHttpResponseStatus.LOCKEDresponse.- Returns:
- a new
HttpResponseStatus.LOCKEDresponse.
-
failedDependency
Create a newHttpResponseStatus.FAILED_DEPENDENCYresponse.- Returns:
- a new
HttpResponseStatus.FAILED_DEPENDENCYresponse.
-
tooEarly
Create a newHttpResponseStatus.TOO_EARLYresponse.- Returns:
- a new
HttpResponseStatus.TOO_EARLYresponse.
-
upgradeRequired
Create a newHttpResponseStatus.UPGRADE_REQUIREDresponse.- Returns:
- a new
HttpResponseStatus.UPGRADE_REQUIREDresponse.
-
preconditionRequired
Create a newHttpResponseStatus.PRECONDITION_REQUIREDresponse.- Returns:
- a new
HttpResponseStatus.PRECONDITION_REQUIREDresponse.
-
tooManyRequests
Create a newHttpResponseStatus.TOO_MANY_REQUESTSresponse.- Returns:
- a new
HttpResponseStatus.TOO_MANY_REQUESTSresponse.
-
requestHeaderFieldsTooLarge
Create a newHttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGEresponse.- Returns:
- a new
HttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGEresponse.
-
internalServerError
Create a newHttpResponseStatus.INTERNAL_SERVER_ERRORresponse.- Returns:
- a new
HttpResponseStatus.INTERNAL_SERVER_ERRORresponse.
-
notImplemented
Create a newHttpResponseStatus.NOT_IMPLEMENTEDresponse.- Returns:
- a new
HttpResponseStatus.NOT_IMPLEMENTEDresponse.
-
badGateway
Create a newHttpResponseStatus.BAD_GATEWAYresponse.- Returns:
- a new
HttpResponseStatus.BAD_GATEWAYresponse.
-
gatewayTimeout
Create a newHttpResponseStatus.GATEWAY_TIMEOUTresponse.- Returns:
- a new
HttpResponseStatus.GATEWAY_TIMEOUTresponse.
-
httpVersionNotSupported
Create a newHttpResponseStatus.HTTP_VERSION_NOT_SUPPORTEDresponse.- Returns:
- a new
HttpResponseStatus.HTTP_VERSION_NOT_SUPPORTEDresponse.
-
variantAlsoNegotiates
Create a newHttpResponseStatus.VARIANT_ALSO_NEGOTIATESresponse.- Returns:
- a new
HttpResponseStatus.VARIANT_ALSO_NEGOTIATESresponse.
-
insufficientStorage
Create a newHttpResponseStatus.INSUFFICIENT_STORAGEresponse.- Returns:
- a new
HttpResponseStatus.INSUFFICIENT_STORAGEresponse.
-
loopDetected
Create a newHttpResponseStatus.LOOP_DETECTEDresponse.- Returns:
- a new
HttpResponseStatus.LOOP_DETECTEDresponse.
-
notExtended
Create a newHttpResponseStatus.NOT_EXTENDEDresponse.- Returns:
- a new
HttpResponseStatus.NOT_EXTENDEDresponse.
-
networkAuthenticationRequired
Create a newHttpResponseStatus.NETWORK_AUTHENTICATION_REQUIREDresponse.- Returns:
- a new
HttpResponseStatus.NETWORK_AUTHENTICATION_REQUIREDresponse.
-