Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9985342

Browse files
committed
rename setError to checkResponse
1 parent6a78932 commit9985342

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎Firebase.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int Firebase::sendRequest(const char* method, const String& path, const String&
8383
String url =makeURL(path);
8484
_http.begin(_host.c_str(), firebasePort, url.c_str(),true, firebaseFingerprint);
8585
int statusCode = _http.sendRequest(method, (uint8_t*)value.c_str(), value.length());
86-
setError(method, url, statusCode);
86+
checkResponse(method, url, statusCode);
8787
return statusCode;
8888
}
8989

@@ -96,7 +96,7 @@ String Firebase::sendRequestGetBody(const char* method, const String& path, cons
9696
return _http.getString();
9797
}
9898

99-
voidFirebase::setError(constchar* method,const String& url,int statusCode) {
99+
voidFirebase::checkResponse(constchar* method,const String& url,int statusCode) {
100100
_error.reset();
101101
if (statusCode <0) {
102102
_error.set(statusCode,

‎Firebase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Firebase {
6666
StringmakeURL(const String& path);
6767
intsendRequest(constchar* method,const String& path,const String& value ="");
6868
StringsendRequestGetBody(constchar* method,const String& path,const String& value ="");
69-
voidsetError(constchar* method,const String& url,int status_code);
69+
voidcheckResponse(constchar* method,const String& url,int status_code);
7070

7171
HTTPClient _http;
7272
String _host;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp