File

projects/pl-core-utils-library/src/lib/service/pl-http.service.ts

Example

Index

Methods

Constructor

constructor(http: HttpClient)

Parameters :
Name Type Optional
http HttpClient No

Methods

CREATEBLOB
CREATEBLOB(streamData: ArrayBuffer, applicationType: CONTENT_TYPE)

Parameters :
Name Type Optional Default value
streamData ArrayBuffer No
applicationType CONTENT_TYPE No CONTENT_TYPE.PDF
Returns : Promise<string>
DELETE
DELETE(plHttpRequest: PlHttpRequest, responseType?: RESPONSE_TYPE, interrupt?: Subject, contentType?: CONTENT_TYPE | string, callBack?: (undefined) => void)

Parameters :
Name Type Optional
plHttpRequest PlHttpRequest No
responseType RESPONSE_TYPE Yes
interrupt Subject<boolean> Yes
contentType CONTENT_TYPE | string Yes
callBack function Yes
DESTROYBLOB
DESTROYBLOB(blobUrl: string)
Parameters :
Name Type Optional
blobUrl string No
Returns : Promise<any>
DOWNLOAD
DOWNLOAD(streamData: ArrayBuffer, contentType: CONTENT_TYPE | string, fileName?: string)

l.piciollo funzione per il download dello straming in formato file, viene prototipato in ambientService

Parameters :
Name Type Optional Description
streamData ArrayBuffer No

array buffer

contentType CONTENT_TYPE | string No

tipo di contenuto

fileName string Yes
Returns : Promise<any>
DOWNLOADURL
DOWNLOADURL(url: string, filename: string)

l.piciollo si occupa di effettuare il download di un file contenuta nel blob creato con le altre funzionalità funzionalità utilizzabile in combinazione con le funzione di creazione image o file è possibile effettuare anche il download di un file in rete, passando il link al file

Parameters :
Name Type Optional Default value Description
url string No

: url del blob

filename string No "download_temp"

: nome file

Returns : void
FORKJOIN
FORKJOIN(plHttpRequest: Array, interrupt?: Subject)

Parameters :
Name Type Optional
plHttpRequest Array<PlHttpRequest> No
interrupt Subject<boolean> Yes
GET
GET(plHttpRequest: PlHttpRequest, responseType?: RESPONSE_TYPE, interrupt?: Subject, contentType?: CONTENT_TYPE | string, callBack?: (undefined) => void)

Parameters :
Name Type Optional
plHttpRequest PlHttpRequest No
responseType RESPONSE_TYPE Yes
interrupt Subject<boolean> Yes
contentType CONTENT_TYPE | string Yes
callBack function Yes
PATCH
PATCH(plHttpRequest: PlHttpRequest, responseType?: RESPONSE_TYPE, interrupt?: Subject, contentType?: CONTENT_TYPE | string, callBack?: (undefined) => void)

Parameters :
Name Type Optional
plHttpRequest PlHttpRequest No
responseType RESPONSE_TYPE Yes
interrupt Subject<boolean> Yes
contentType CONTENT_TYPE | string Yes
callBack function Yes
POST
POST(plHttpRequest: PlHttpRequest, responseType?: RESPONSE_TYPE, interrupt?: Subject, contentType?: CONTENT_TYPE | string, callBack?: (undefined) => void)

Parameters :
Name Type Optional
plHttpRequest PlHttpRequest No
responseType RESPONSE_TYPE Yes
interrupt Subject<boolean> Yes
contentType CONTENT_TYPE | string Yes
callBack function Yes
PUT
PUT(plHttpRequest: PlHttpRequest, responseType?: RESPONSE_TYPE, interrupt?: Subject, contentType?: CONTENT_TYPE | string, callBack?: (undefined) => void)

Parameters :
Name Type Optional
plHttpRequest PlHttpRequest No
responseType RESPONSE_TYPE Yes
interrupt Subject<boolean> Yes
contentType CONTENT_TYPE | string Yes
callBack function Yes

result-matching ""

    No results matching ""