-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36ddd84
commit e418783
Showing
11 changed files
with
89 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
module HTTPX | ||
class ServerSideRequestForgeryError < Error | ||
end | ||
|
||
module Plugins | ||
module SsrfFilter | ||
IPV4_BLACKLIST: Array[IPAddr] | ||
|
||
IPV6_BLACKLIST: Array[[IPAddr, IPAddr]] | ||
|
||
def self?.unsafe_ip_address?: (IPAddr) -> bool | ||
|
||
interface _Options | ||
def allowed_schemes: () -> Array[String] | ||
end | ||
|
||
module InstanceMethods | ||
end | ||
|
||
module ConnectionMethods | ||
end | ||
end | ||
|
||
type sessionSsrf = Session & SsrfFilter::InstanceMethods | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module HTTPX | ||
module Plugins | ||
module WebDav | ||
module InstanceMethods | ||
def copy: (String src, String dst) -> (Response | ErrorResponse) | ||
|
||
def move: (String src, String dst) -> (Response | ErrorResponse) | ||
|
||
def lock: (String path, ?timeout: Numeric) ?{ (Response response) -> void } -> (Response | ErrorResponse) | ||
|
||
def unlock: (String path, String? lock_token) -> (Response | ErrorResponse) | ||
|
||
def mkcol: (String dir) -> Response | ||
|
||
def propfind: (String path, ?(:acl | String) xml) -> Response | ||
|
||
def proppatch: (String path, String xml) -> Response | ||
end | ||
end | ||
|
||
type sessionWebDav = Session & WebDav::InstanceMethods | ||
end | ||
end |