Skip to content

agmsb/gcf-cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcf-cookies

A stupid simple Google Cloud Function that responds to an HTTP request with a cookie from a request's HTTP headers.

This is NOT an official Google product.

Requirements

  • Google Cloud Platform project
  • gcloud set up and initialized for a project with the Cloud Functions API enabled.

Usage

git clone https://github.com/agmsb/gcf-cookies.git && cd gcf-cookies && gcloud functions deploy gcf-cookies --runtime nodejs6 --entry-point helloCookie --trigger-http

Testing

Use a client like Postman to alter your http request and set cookie in your request header. You can also use this lightweight client from Apigee. See the GIF below for reference.

Demo

demo-gif

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published