forked from pramsey/pgsql-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request pramsey#35 from tbussmann/master
Add HEAD method
- Loading branch information
Showing
7 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "http", | ||
"abstract": "HTTP client for PostgreSQL", | ||
"description": "HTTP allows you to get the content of a web page in a SQL function call.", | ||
"version": "1.1", | ||
"version": "1.2", | ||
"maintainer": [ | ||
"Paul Ramsey <[email protected]>" | ||
], | ||
|
@@ -21,9 +21,9 @@ | |
}, | ||
"provides": { | ||
"http": { | ||
"file": "http--1.1.sql", | ||
"file": "http--1.2.sql", | ||
"docfile": "README.md", | ||
"version": "1.1", | ||
"version": "1.2", | ||
"abstract": "HTTP client for PostgreSQL" | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
ALTER DOMAIN http_method DROP CONSTRAINT http_method_check; | ||
ALTER DOMAIN http_method ADD CHECK ( | ||
VALUE ILIKE 'get' OR | ||
VALUE ILIKE 'post' OR | ||
VALUE ILIKE 'put' OR | ||
VALUE ILIKE 'delete' OR | ||
VALUE ILIKE 'head' | ||
); | ||
|
||
CREATE OR REPLACE FUNCTION http_head(uri VARCHAR) | ||
RETURNS http_response | ||
AS $$ SELECT http(('HEAD', $1, NULL, NULL, NULL)::http_request) $$ | ||
LANGUAGE 'sql'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
default_version = '1.1' | ||
default_version = '1.2' | ||
module_pathname = '$libdir/http' | ||
relocatable = true | ||
comment = 'HTTP client for PostgreSQL, allows web page retrieval inside the database.' |