-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
Add support for escaped URLs #1642
Conversation
…stead Also copy `postParams` as that is probably intended Deprecate `HttpRequest` copy assignment operator Define appropriate copy constructors for `HttpHeaders` and `HttpParams` Using copy operator on headers unsafe (its' private in HashMap), using setMultiple() will work as expected.
…dise URL schemes Rename `Protocol` to `Scheme` Common schemes defined in table with default port numbers Replace use of ad-hoc names with `URI_SCHEME_*` Add support for URL fragments Add constructor to `Url` with individual components Provide implicit `String()` operator for `Url` Add `getRelativePath()` and `getFileName()` to simplify application code
Hm... I guess I should change the next release version from 3.7.2. to 3.8.0. There are already a lot of good improvements and deprecations in it to be treated as a minor release. |
this->url.Port = 465; | ||
} | ||
if(this->url.Port == 0) { | ||
this->url.Port = isSecure ? 465 : 25; |
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.
Maybe you can use URI_SCHEME_MAP instead of hard-coding the ports?
|
||
client.connect(URL(dsn)); |
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.
I guess this PR is almost ready. Just the Readme.md file needs an update.
@mikee47 Is the PR ready and tested or you plan to add something more? |
@slaff OK, that's everything. I wanted to include an example somewhere for alternative methods of URL construction. |
Revise
HttpRequest
copy constructorpostParams
in copyHttpRequest
copy assignment operatorHttpHeaders
andHttpParams
Revise
URL
andHttpParams
to support escaped textURL
toUrl
- deprecateURL
libyuarel
Add support for common URL schemes
Protocol
toScheme
as per RFCURI_SCHEME_*
Other additions
Url
with individual componentsString()
operator forUrl
(useful for print, etc.)getRelativePath()
andgetFileName()
to simplify application codeHttpBodyParser()
to un-escape parameter data