Skip to content

Commit ee0bb77

Browse files
authored
Add REST method PATCH for Ajax (#423)
1 parent ac85ff9 commit ee0bb77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/scala/org/scalajs/dom/ext/Extensions.scala

+6
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ object Ajax {
243243
apply("PUT", url, data, timeout, headers, withCredentials, responseType)
244244
}
245245

246+
def patch(url: String, data: InputData = null, timeout: Int = 0,
247+
headers: Map[String, String] = Map.empty,
248+
withCredentials: Boolean = false, responseType: String = "") = {
249+
apply("PATCH", url, data, timeout, headers, withCredentials, responseType)
250+
}
251+
246252
def delete(url: String, data: InputData = null, timeout: Int = 0,
247253
headers: Map[String, String] = Map.empty,
248254
withCredentials: Boolean = false, responseType: String = "") = {

0 commit comments

Comments
 (0)