This file contains hidden or 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
from flask import Flask, request, Response | |
import unittest | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
response = Response("Done", 200) | |
for k,v in request.headers: | |
response.headers.add(k,v) |
This file contains hidden or 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
-- RUN ONLY ONCE TO DEPLOY PROCEDURE & FUNCTION INTO DB | |
DELIMITER $$ | |
-- FUNCTION TAKES STRING, DELIMITER AND POSITION | |
-- AND RETURNS SUBSTRING OF DEFINED POSITION BY DELIMITERS | |
-- IF DELIMITER NOT FOUND OR OUT OF RANGE WILL RETURN '' (empty string) | |
-- Example: SPLIT_STR('ABRA / SCHWABRA / KADABRA',' / ',3) returns 'KADABRA' | |
-- | |
-- IF DELIMITER NOT FOUND OR OUT OF RANGE WILL RETURN '' (empty string) | |
-- Example: SPLIT_STR('-/-',',',1) returns '' |
OlderNewer