DNConcreteHttp class

package:http를 사용하고 Map 본문을 JSON으로 보내는 기본 HTTP 구현이다.

Implemented types
Available extensions

Constructors

DNConcreteHttp({required String baseUrl})
상대 경로 요청에 사용할 baseUrl로 클라이언트를 만든다.

Properties

baseUrl → String
상대 요청 경로에 사용할 API 원점을 반환한다.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

alert(Response response) → Future<void>
응답을 기록하고 등록된 다이얼로그로 오류 메시지를 표시한다.
override
fetch(String uri, {Map<String, dynamic>? queryParameters, String method = "GET", Map<String, String>? headers, Object? body}) → Future<Response>
지원 HTTP 메서드로 요청하고 네트워크 예외를 500 응답으로 변환한다.
override
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