-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加自定义ScopingHttpClient降低使用复杂度 #2766
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
public function request(string $method, string $url, array $options = []): ResponseInterface | ||
{ | ||
foreach ($this->defaultOptionsByRegexp as $regexp => $defaultOptions) { | ||
if (preg_match("{{$regexp}}A", $url)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的 A 是?
@overtrue 超哥, 这个是一个修饰符 PCRE_ANCHORED A (PCRE_ANCHORED) |
在
PS: 都已经设计成 模式匹配方式了,为啥不考虑把 |
@TheNorthMemory 模式放进 已经去掉了A模式, 现在应该没啥争议了 |
No description provided.