mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
integrate mutex_m in signatures
This commit is contained in:
parent
9342f983d5
commit
0555132740
@ -8,7 +8,7 @@ module HTTPX
|
||||
def self?.cached_response?: (response response) -> bool
|
||||
|
||||
class Store
|
||||
@store: Hash[String, Array[Response]]
|
||||
@store: Hash[String, Array[Response]] & Mutex_m
|
||||
|
||||
def lookup: (Request request) -> Response?
|
||||
|
||||
@ -21,6 +21,10 @@ module HTTPX
|
||||
private
|
||||
|
||||
def match_by_vary?: (Request request, Response response) -> bool
|
||||
|
||||
def _get: (Request request) -> Array[Response]?
|
||||
|
||||
def _set: (Request request, Response response) -> void
|
||||
end
|
||||
|
||||
module InstanceMethods
|
||||
|
@ -66,7 +66,7 @@ if [[ ${RUBY_VERSION:0:1} = "3" ]] && [[ ! $RUBYOPT =~ "jit" ]]; then
|
||||
export RUBYOPT="$RUBYOPT -rbundler/setup -rrbs/test/setup"
|
||||
export RBS_TEST_RAISE=true
|
||||
export RBS_TEST_LOGLEVEL=error
|
||||
export RBS_TEST_OPT="-Isig -rset -rforwardable -ruri -rjson -ripaddr -rpathname -rtime -rtimeout -rresolv -rsocket -ropenssl -rbase64 -rzlib -rcgi -rhttp-2-next"
|
||||
export RBS_TEST_OPT="-Isig -rset -rmutex_m -rforwardable -ruri -rjson -ripaddr -rpathname -rtime -rtimeout -rresolv -rsocket -ropenssl -rbase64 -rzlib -rcgi -rhttp-2-next"
|
||||
export RBS_TEST_TARGET="HTTP*"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user