Package io.servicetalk.http.api
Interface StreamingHttpResponseFactory
- All Known Subinterfaces:
StreamingHttpRequestResponseFactory
- All Known Implementing Classes:
DefaultStreamingHttpRequestResponseFactory
public interface StreamingHttpResponseFactory
A factory for creating
StreamingHttpResponse
s.-
Method Summary
Modifier and TypeMethodDescriptiondefault StreamingHttpResponse
accepted()
Create a newHttpResponseStatus.ACCEPTED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.ALREADY_REPORTED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.BAD_GATEWAY
response.default StreamingHttpResponse
Create a newHttpResponseStatus.BAD_REQUEST
response.default StreamingHttpResponse
conflict()
Create a newHttpResponseStatus.CONFLICT
response.default StreamingHttpResponse
Create a newHttpResponseStatus.CONTINUE
response.default StreamingHttpResponse
created()
Create a newHttpResponseStatus.CREATED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.EARLY_HINTS
response.default StreamingHttpResponse
Create a newHttpResponseStatus.EXPECTATION_FAILED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.FAILED_DEPENDENCY
response.default StreamingHttpResponse
Create a newHttpResponseStatus.FORBIDDEN
response.default StreamingHttpResponse
found()
Create a newHttpResponseStatus.FOUND
response.default StreamingHttpResponse
Create a newHttpResponseStatus.GATEWAY_TIMEOUT
response.default StreamingHttpResponse
gone()
Create a newHttpResponseStatus.GONE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.HTTP_VERSION_NOT_SUPPORTED
response.default StreamingHttpResponse
imUsed()
Create a newHttpResponseStatus.IM_USED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.INSUFFICIENT_STORAGE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.INTERNAL_SERVER_ERROR
response.default StreamingHttpResponse
Create a newHttpResponseStatus.LENGTH_REQUIRED
response.default StreamingHttpResponse
locked()
Create a newHttpResponseStatus.LOCKED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.LOOP_DETECTED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.METHOD_NOT_ALLOWED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.MISDIRECTED_REQUEST
response.default StreamingHttpResponse
Create a newHttpResponseStatus.MOVED_PERMANENTLY
response.default StreamingHttpResponse
Create a newHttpResponseStatus.MULTIPLE_CHOICES
response.default StreamingHttpResponse
Create a newHttpResponseStatus.MULTI_STATUS
response.default StreamingHttpResponse
Create a newHttpResponseStatus.NETWORK_AUTHENTICATION_REQUIRED
response.newResponse
(HttpResponseStatus status) Create a newStreamingHttpResponse
object.default StreamingHttpResponse
Create a newHttpResponseStatus.NO_CONTENT
response.default StreamingHttpResponse
Create a newHttpResponseStatus.NON_AUTHORITATIVE_INFORMATION
response.default StreamingHttpResponse
Create a newHttpResponseStatus.NOT_ACCEPTABLE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.NOT_EXTENDED
response.default StreamingHttpResponse
notFound()
Create a newHttpResponseStatus.NOT_FOUND
response.default StreamingHttpResponse
Create a newHttpResponseStatus.NOT_IMPLEMENTED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.NOT_MODIFIED
response.default StreamingHttpResponse
ok()
Create a newHttpResponseStatus.OK
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PARTIAL_CONTENT
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PAYLOAD_TOO_LARGE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PAYMENT_REQUIRED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PERMANENT_REDIRECT
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PRECONDITION_FAILED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PRECONDITION_REQUIRED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PROCESSING
response.default StreamingHttpResponse
Create a newHttpResponseStatus.PROXY_AUTHENTICATION_REQUIRED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.RANGE_NOT_SATISFIABLE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.REQUEST_TIMEOUT
response.default StreamingHttpResponse
Create a newHttpResponseStatus.RESET_CONTENT
response.default StreamingHttpResponse
seeOther()
Create a newHttpResponseStatus.SEE_OTHER
response.default StreamingHttpResponse
Create a newHttpResponseStatus.SERVICE_UNAVAILABLE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.SWITCHING_PROTOCOLS
response.default StreamingHttpResponse
Create a newHttpResponseStatus.TEMPORARY_REDIRECT
response.default StreamingHttpResponse
tooEarly()
Create a newHttpResponseStatus.TOO_EARLY
response.default StreamingHttpResponse
Create a newHttpResponseStatus.TOO_MANY_REQUESTS
response.default StreamingHttpResponse
Create a newHttpResponseStatus.UNAUTHORIZED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.UNAVAILABLE_FOR_LEGAL_REASONS
response.default StreamingHttpResponse
Create a newHttpResponseStatus.UNPROCESSABLE_ENTITY
response.default StreamingHttpResponse
Create a newHttpResponseStatus.UNSUPPORTED_MEDIA_TYPE
response.default StreamingHttpResponse
Create a newHttpResponseStatus.UPGRADE_REQUIRED
response.default StreamingHttpResponse
Create a newHttpResponseStatus.URI_TOO_LONG
response.default StreamingHttpResponse
useProxy()
Create a newHttpResponseStatus.USE_PROXY
response.default StreamingHttpResponse
Create a newHttpResponseStatus.VARIANT_ALSO_NEGOTIATES
response.
-
Method Details
-
newResponse
Create a newStreamingHttpResponse
object.- Parameters:
status
- TheHttpResponseStatus
.- Returns:
- a new
StreamingHttpResponse
object.
-
continueResponse
Create a newHttpResponseStatus.CONTINUE
response.- Returns:
- a new
HttpResponseStatus.CONTINUE
response.
-
switchingProtocols
Create a newHttpResponseStatus.SWITCHING_PROTOCOLS
response.- Returns:
- a new
HttpResponseStatus.SWITCHING_PROTOCOLS
response.
-
processing
Create a newHttpResponseStatus.PROCESSING
response.- Returns:
- a new
HttpResponseStatus.PROCESSING
response.
-
earlyHints
Create a newHttpResponseStatus.EARLY_HINTS
response.- Returns:
- a new
HttpResponseStatus.EARLY_HINTS
response.
-
ok
Create a newHttpResponseStatus.OK
response.- Returns:
- a new
HttpResponseStatus.OK
response.
-
created
Create a newHttpResponseStatus.CREATED
response.- Returns:
- a new
HttpResponseStatus.CREATED
response.
-
accepted
Create a newHttpResponseStatus.ACCEPTED
response.- Returns:
- a new
HttpResponseStatus.ACCEPTED
response.
-
nonAuthoritativeInformation
Create a newHttpResponseStatus.NON_AUTHORITATIVE_INFORMATION
response.- Returns:
- a new
HttpResponseStatus.NON_AUTHORITATIVE_INFORMATION
response.
-
noContent
Create a newHttpResponseStatus.NO_CONTENT
response.- Returns:
- a new
HttpResponseStatus.NO_CONTENT
response.
-
resetContent
Create a newHttpResponseStatus.RESET_CONTENT
response.- Returns:
- a new
HttpResponseStatus.RESET_CONTENT
response.
-
partialContent
Create a newHttpResponseStatus.PARTIAL_CONTENT
response.- Returns:
- a new
HttpResponseStatus.PARTIAL_CONTENT
response.
-
multiStatus
Create a newHttpResponseStatus.MULTI_STATUS
response.- Returns:
- a new
HttpResponseStatus.MULTI_STATUS
response.
-
alreadyReported
Create a newHttpResponseStatus.ALREADY_REPORTED
response.- Returns:
- a new
HttpResponseStatus.ALREADY_REPORTED
response.
-
imUsed
Create a newHttpResponseStatus.IM_USED
response.- Returns:
- a new
HttpResponseStatus.IM_USED
response.
-
multipleChoices
Create a newHttpResponseStatus.MULTIPLE_CHOICES
response.- Returns:
- a new
HttpResponseStatus.MULTIPLE_CHOICES
response.
-
movedPermanently
Create a newHttpResponseStatus.MOVED_PERMANENTLY
response.- Returns:
- a new
HttpResponseStatus.MOVED_PERMANENTLY
response.
-
found
Create a newHttpResponseStatus.FOUND
response.- Returns:
- a new
HttpResponseStatus.FOUND
response.
-
seeOther
Create a newHttpResponseStatus.SEE_OTHER
response.- Returns:
- a new
HttpResponseStatus.SEE_OTHER
response.
-
notModified
Create a newHttpResponseStatus.NOT_MODIFIED
response.- Returns:
- a new
HttpResponseStatus.NOT_MODIFIED
response.
-
useProxy
Create a newHttpResponseStatus.USE_PROXY
response.- Returns:
- a new
HttpResponseStatus.USE_PROXY
response.
-
temporaryRedirect
Create a newHttpResponseStatus.TEMPORARY_REDIRECT
response.- Returns:
- a new
HttpResponseStatus.TEMPORARY_REDIRECT
response.
-
permanentRedirect
Create a newHttpResponseStatus.PERMANENT_REDIRECT
response.- Returns:
- a new
HttpResponseStatus.PERMANENT_REDIRECT
response.
-
badRequest
Create a newHttpResponseStatus.BAD_REQUEST
response.- Returns:
- a new
HttpResponseStatus.BAD_REQUEST
response.
-
unauthorized
Create a newHttpResponseStatus.UNAUTHORIZED
response.- Returns:
- a new
HttpResponseStatus.UNAUTHORIZED
response.
-
paymentRequired
Create a newHttpResponseStatus.PAYMENT_REQUIRED
response.- Returns:
- a new
HttpResponseStatus.PAYMENT_REQUIRED
response.
-
forbidden
Create a newHttpResponseStatus.FORBIDDEN
response.- Returns:
- a new
HttpResponseStatus.FORBIDDEN
response.
-
notFound
Create a newHttpResponseStatus.NOT_FOUND
response.- Returns:
- a new
HttpResponseStatus.NOT_FOUND
response.
-
methodNotAllowed
Create a newHttpResponseStatus.METHOD_NOT_ALLOWED
response.- Returns:
- a new
HttpResponseStatus.METHOD_NOT_ALLOWED
response.
-
notAcceptable
Create a newHttpResponseStatus.NOT_ACCEPTABLE
response.- Returns:
- a new
HttpResponseStatus.NOT_ACCEPTABLE
response.
-
proxyAuthenticationRequired
Create a newHttpResponseStatus.PROXY_AUTHENTICATION_REQUIRED
response.- Returns:
- a new
HttpResponseStatus.PROXY_AUTHENTICATION_REQUIRED
response.
-
requestTimeout
Create a newHttpResponseStatus.REQUEST_TIMEOUT
response.- Returns:
- a new
HttpResponseStatus.REQUEST_TIMEOUT
response.
-
conflict
Create a newHttpResponseStatus.CONFLICT
response.- Returns:
- a new
HttpResponseStatus.CONFLICT
response.
-
gone
Create a newHttpResponseStatus.GONE
response.- Returns:
- a new
HttpResponseStatus.GONE
response.
-
lengthRequired
Create a newHttpResponseStatus.LENGTH_REQUIRED
response.- Returns:
- a new
HttpResponseStatus.LENGTH_REQUIRED
response.
-
preconditionFailed
Create a newHttpResponseStatus.PRECONDITION_FAILED
response.- Returns:
- a new
HttpResponseStatus.PRECONDITION_FAILED
response.
-
payloadTooLarge
Create a newHttpResponseStatus.PAYLOAD_TOO_LARGE
response.- Returns:
- a new
HttpResponseStatus.PAYLOAD_TOO_LARGE
response.
-
uriTooLong
Create a newHttpResponseStatus.URI_TOO_LONG
response.- Returns:
- a new
HttpResponseStatus.URI_TOO_LONG
response.
-
unsupportedMediaType
Create a newHttpResponseStatus.UNSUPPORTED_MEDIA_TYPE
response.- Returns:
- a new
HttpResponseStatus.UNSUPPORTED_MEDIA_TYPE
response.
-
rangeNotSatisfiable
Create a newHttpResponseStatus.RANGE_NOT_SATISFIABLE
response.- Returns:
- a new
HttpResponseStatus.RANGE_NOT_SATISFIABLE
response.
-
expectationFailed
Create a newHttpResponseStatus.EXPECTATION_FAILED
response.- Returns:
- a new
HttpResponseStatus.EXPECTATION_FAILED
response.
-
misdirectedRequest
Create a newHttpResponseStatus.MISDIRECTED_REQUEST
response.- Returns:
- a new
HttpResponseStatus.MISDIRECTED_REQUEST
response.
-
unprocessableEntity
Create a newHttpResponseStatus.UNPROCESSABLE_ENTITY
response.- Returns:
- a new
HttpResponseStatus.UNPROCESSABLE_ENTITY
response.
-
locked
Create a newHttpResponseStatus.LOCKED
response.- Returns:
- a new
HttpResponseStatus.LOCKED
response.
-
failedDependency
Create a newHttpResponseStatus.FAILED_DEPENDENCY
response.- Returns:
- a new
HttpResponseStatus.FAILED_DEPENDENCY
response.
-
tooEarly
Create a newHttpResponseStatus.TOO_EARLY
response.- Returns:
- a new
HttpResponseStatus.TOO_EARLY
response.
-
upgradeRequired
Create a newHttpResponseStatus.UPGRADE_REQUIRED
response.- Returns:
- a new
HttpResponseStatus.UPGRADE_REQUIRED
response.
-
preconditionRequired
Create a newHttpResponseStatus.PRECONDITION_REQUIRED
response.- Returns:
- a new
HttpResponseStatus.PRECONDITION_REQUIRED
response.
-
tooManyRequests
Create a newHttpResponseStatus.TOO_MANY_REQUESTS
response.- Returns:
- a new
HttpResponseStatus.TOO_MANY_REQUESTS
response.
-
requestHeaderFieldsTooLarge
Create a newHttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGE
response.- Returns:
- a new
HttpResponseStatus.REQUEST_HEADER_FIELDS_TOO_LARGE
response.
-
internalServerError
Create a newHttpResponseStatus.INTERNAL_SERVER_ERROR
response.- Returns:
- a new
HttpResponseStatus.INTERNAL_SERVER_ERROR
response.
-
notImplemented
Create a newHttpResponseStatus.NOT_IMPLEMENTED
response.- Returns:
- a new
HttpResponseStatus.NOT_IMPLEMENTED
response.
-
badGateway
Create a newHttpResponseStatus.BAD_GATEWAY
response.- Returns:
- a new
HttpResponseStatus.BAD_GATEWAY
response.
-
gatewayTimeout
Create a newHttpResponseStatus.GATEWAY_TIMEOUT
response.- Returns:
- a new
HttpResponseStatus.GATEWAY_TIMEOUT
response.
-
httpVersionNotSupported
Create a newHttpResponseStatus.HTTP_VERSION_NOT_SUPPORTED
response.- Returns:
- a new
HttpResponseStatus.HTTP_VERSION_NOT_SUPPORTED
response.
-
variantAlsoNegotiates
Create a newHttpResponseStatus.VARIANT_ALSO_NEGOTIATES
response.- Returns:
- a new
HttpResponseStatus.VARIANT_ALSO_NEGOTIATES
response.
-
insufficientStorage
Create a newHttpResponseStatus.INSUFFICIENT_STORAGE
response.- Returns:
- a new
HttpResponseStatus.INSUFFICIENT_STORAGE
response.
-
loopDetected
Create a newHttpResponseStatus.LOOP_DETECTED
response.- Returns:
- a new
HttpResponseStatus.LOOP_DETECTED
response.
-
notExtended
Create a newHttpResponseStatus.NOT_EXTENDED
response.- Returns:
- a new
HttpResponseStatus.NOT_EXTENDED
response.
-
networkAuthenticationRequired
Create a newHttpResponseStatus.NETWORK_AUTHENTICATION_REQUIRED
response.- Returns:
- a new
HttpResponseStatus.NETWORK_AUTHENTICATION_REQUIRED
response.
-