Alexandre Gomes Gaigalas
Alexandre Gomes Gaigalas
_Disclaimer: I have no idea what I'm doing._ I've followed some of the steps that were taken on #61 for the PHP repo. - Added the cosmopolitan amalgam to the...
@jart thanks! It seems [PHP 7.4+ can't be build without the hash extension](https://wiki.php.net/rfc/permanent_hash_ext), I'll try again soon with the 7.3 branch that has `--disable-hash`. Meanwhile I'll try building something simpler...
Unfortunately, quoting is dbms-specific. Each database has its own quoting model (for example, SQL Sever uses brackets to quote e.g. [column_name]). The Sql class should be dbms independent, but you...
I like it. I've put some thought on this. Currently, if the content-negotiation headers doesn't match, we issue a 406 Not Acceptable. I believe this behavior is right, but it...
I'm also thinking on mapping extensions to mime-types in a router level. Something like: ``` $router->extensionMap = array( 'xml' => 'text/xml', 'json' => 'application/json', 'foobar' => 'text/xml' ); ``` Since...
I believe we should pick one strategy and implement it as a separate routine. Something like: ``` $r3->any('/images/*/metadata', 'ImageMetadataFetcher') ->accept( 'text/html' => new HtmlFormatter, 'application/rdf+xml' => new RdfFormatter); ``` The...
By the way, I'm having a blast reading you guys discuss about these long time HTTP pitfalls. Very inspiring! I believe we should treat HTTP and REST as separate things....
I believe the Link header expresses a relation from A to B, while the Alternate header expresses no relations at all, just content negotiation. Maybe the Link header must appear...
Oops, I'm kinda wrong. The link rel="alternate" exists for that. We can use Link and Alternates on 300. =)
I actually commited the rel() Routine, I believe we should start discussing it here! What I really wanted is to be able to: ``` php $singleArticle = $router->get('/articles/*', 'MySingleArticleOrSo'); $articleCollection...