Skip to content

Commit

Permalink
[Issue Alamofire#464] Documenting requirements for URLString type
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed May 2, 2015
1 parent bc6fa4c commit eb4a945
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Source/Alamofire.swift
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,15 @@ public enum ParameterEncoding {
Types adopting the `URLStringConvertible` protocol can be used to construct URL strings, which are then used to construct URL requests.
*/
public protocol URLStringConvertible {
/// The URL string.
/**
A URL that conforms to RFC 2396.

Methods accepting a `URLStringConvertible` type parameter parse it according to RFCs 1738 and 1808.

See http://tools.ietf.org/html/rfc2396
See http://tools.ietf.org/html/rfc1738
See http://tools.ietf.org/html/rfc1808
*/
var URLString: String { get }
}

Expand Down

0 comments on commit eb4a945

Please sign in to comment.