WSStreamRequestHelper
io.cequence.wsclient.service.ws.stream.WSStreamRequestHelper
Stream request support specifically tailored for OpenAI API.
Attributes
- Since:
Feb 2023
- Graph
- Supertypes
- trait WSRequestHelpertrait RetryableServicetrait HasWSClienttrait CloseableServiceclass Objecttrait Matchableclass Any
Members list
Concise view
Type members
Inherited types
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Value members
Concrete methods
protected def execJsonStreamAux(endPoint: PEP, method: String, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])])(implicit materializer: Materializer): Source[JsValue, NotUsed]
protected def execStreamRequestAux[T](endPoint: PEP, method: String, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])], framing: Flow[ByteString, ByteString, NotUsed], recoverBlock: PartialFunction[Throwable, T])(implicit um: Unmarshaller[ByteString, T], materializer: Materializer): Source[T, NotUsed]
Inherited methods
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Closes the underlying ws client, and releases all its resources.
Closes the underlying ws client, and releases all its resources.
Attributes
- Definition Classes
- HasWSClient -> CloseableService
- Inherited from:
- HasWSClient
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execDELETE(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])]): Future[JsValue]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execDELETEWithStatus(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execGET(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])]): Future[JsValue]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execGETJsonAux(request: StandaloneWSRequest, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execGETStringAux(request: StandaloneWSRequest, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichStringResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execGETWithStatus(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
protected def execPATCH(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])]): Future[JsValue]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
protected def execPATCHJsonAux[T : BodyWritable](request: StandaloneWSRequest, body: T, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
protected def execPATCHStringAux[T : BodyWritable](request: StandaloneWSRequest, body: T, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichStringResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
protected def execPATCHWithStatus(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOST(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])]): Future[JsValue]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTJsonAux[T : BodyWritable](request: StandaloneWSRequest, body: T, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTMultipart(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], fileParams: Seq[(PT, File, Option[String])], bodyParams: Seq[(PT, Option[Any])]): Future[JsValue]
Attributes
- fileParams
the third param in a tuple is a display (header) file name
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTMultipartWithStatus(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], fileParams: Seq[(PT, File, Option[String])], bodyParams: Seq[(PT, Option[Any])], acceptableStatusCodes: Seq[Int])(implicit filePartToContent: FilePart => String): Future[RichJsResponse]
Attributes
- fileParams
the third param in a tuple is a display (header) file name
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTMultipartWithStatusString(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], fileParams: Seq[(PT, File, Option[String])], bodyParams: Seq[(PT, Option[Any])], acceptableStatusCodes: Seq[Int])(implicit filePartToContent: FilePart => String): Future[RichStringResponse]
Attributes
- fileParams
the third param in a tuple is a display (header) file name
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTSource(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])]): Future[Source[ByteString, _]]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTSourceAux[T : BodyWritable](request: StandaloneWSRequest, body: T, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichSourceResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTSourceWithStatus(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])], acceptableStatusCodes: Seq[Int]): Future[RichSourceResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTStringAux[T : BodyWritable](request: StandaloneWSRequest, body: T, endPointForLogging: Option[PEP], acceptableStatusCodes: Seq[Int]): Future[RichStringResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execPOSTWithStatus(endPoint: PEP, endPointParam: Option[String], params: Seq[(PT, Option[Any])], bodyParams: Seq[(PT, Option[JsValue])], acceptableStatusCodes: Seq[Int]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execRequestJsonAux(request: StandaloneWSRequest, exec: StandaloneWSRequest => Future[Response], acceptableStatusCodes: Seq[Int], endPointForLogging: Option[PEP]): Future[RichJsResponse]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
def execRequestRaw(request: StandaloneWSRequest, exec: StandaloneWSRequest => Future[Response], acceptableStatusCodes: Seq[Int], endPointForLogging: Option[PEP]): Future[Either[Response, (Int, String)]]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
override protected def getWSRequest(endPoint: Option[PEP], endPointParam: Option[String], params: Seq[(String, Any)]): Self
Attributes
- Definition Classes
- WSRequestHelper -> WSRequestHelperBase
- Inherited from:
- WSRequestHelper
override protected def getWSRequestOptional(endPoint: Option[PEP], endPointParam: Option[String], params: Seq[(String, Option[Any])]): Self
Attributes
- Definition Classes
- WSRequestHelper -> WSRequestHelperBase
- Inherited from:
- WSRequestHelper
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Definition Classes
- WSRequestHelperBase -> RetryableService
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
protected def recoverErrors(endPointForLogging: Option[PEP]): PartialFunction[Throwable, Either[Response, (Int, String)]]
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Definition Classes
- WSRequestHelper -> HasWSClient
- Inherited from:
- WSRequestHelper
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Inherited fields
Attributes
- Inherited from:
- HasWSClient
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- WSRequestHelper
Attributes
- Inherited from:
- WSRequestHelper
Attributes
- Inherited from:
- WSRequestHelper
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Implicits
Inherited implicits
Attributes
- Inherited from:
- WSRequestHelperBase (hidden)
Attributes
- Inherited from:
- HasWSClient