Changeset 11991 in project
- Timestamp:
- 09/25/08 01:40:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wiki/uri-generic
r11943 r11991 22 22 23 23 ==== Constructors 24 25 As specified in section 2.3 of RFC 3986, URI constructors 26 automatically decode percent-encoded octets in the range of unreserved 27 characters. This means that the following holds true: 28 29 (equal? (uri-reference "http://example.com/foo-bar") 30 (uri-reference "http://example.com/foo%2Dbar")) => #t 24 31 25 32 <procedure>(uri-reference STRING) => URI</procedure> … … 76 83 of the first URI with respect to the second URI. 77 84 85 ==== String encoding and decoding 86 87 <procedure>(uri-encode-string STRING) => STRING</procedure> 88 89 Returns the percent-encoded form of the given string. 90 91 <procedure>(uri-decode-string STRING) => STRING</procedure> 92 93 Returns the decoded form of the given string. 94 95 78 96 ==== Normalization 79 97 … … 93 111 === Version History 94 112 113 * 1.7 Added uri-encode-string and uri-decode-string. 114 URI constructors now perform automatic normalization 115 of percent-encoded unreserved characters. [suggested by Peter Bex] 95 116 * 1.6 Added error message about missing scheme in absolute-uri. 96 117 * trunk Small bugfix in absolute-uri. [Peter Bex] … … 103 124 === License 104 125 105 Based on the [[http://www.ninebynine.org/Software/ReadMe-URI-Haskell.txt|Haskell URI library]] by Graham Klyne <gk@ninebynine.org>. 126 Based on the 127 [[http://www.ninebynine.org/Software/ReadMe-URI-Haskell.txt|Haskell 128 URI library]] by Graham Klyne <gk@ninebynine.org>. 106 129 107 Copyright 2008 Ivan Raikov .130 Copyright 2008 Ivan Raikov, Peter Bex. 108 131 109 132 Redistribution and use in source and binary forms, with or without
Note: See TracChangeset
for help on using the changeset viewer.