Skip to content
Last updated

API / geotoolkit / http / HttpClient / HttpClient

Class: HttpClient

http.HttpClient.HttpClient

Provide a container for HTTP service

Table of contents

Constructors
  • [new HttpClient()](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.http.httpclient.httpclient.md#new httpclient())
Methods

Contents

Constructors

new HttpClient()

• new HttpClient()

Methods

getClassName

▸ getClassName(): string

Returns

string


getHttp

▸ getHttp(): AbstractHttpService

Return an instance of http service

Returns

AbstractHttpService


setHttp

▸ setHttp(service): HttpClient

Sets default instance of HTTP service

Parameters

Name Type Description
serviceAbstractHttpServicea new default service

Returns

HttpClient

this


getClassName

▸ Static getClassName(): string

Returns

string


getInstance

▸ Static getInstance(): HttpClient

Return instance of the client

Returns

HttpClient