DNHttp class abstract
Dnkit이 사용하는 HTTP 요청 및 오류 알림 계약이다.
- Implementers
- Available extensions
Constructors
- DNHttp()
Properties
Methods
-
alert(
Response response) → Future< void> -
실패한
response의 내용을 사용자에게 알린다. -
fetch(
String uri, {Map< String, dynamic> ? queryParameters, String method = "GET", Map<String, String> ? headers, Object? body}) → Future<Response> -
uri에 HTTP 요청을 보내고 원본 응답을 반환한다. -
fetchWithAuth(
String path, {Map< String, dynamic> ? queryParameters, String method = "GET", Map<String, String> ? headers, Object? body, int count = 0}) → Future<Response> -
Available on DNHttp, provided by the DNHttpAuthExtension extension
액세스 토큰을 붙여 요청하고 401이면 토큰 갱신 후 최대 두 번 재시도한다. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited