Sign inSign up

hugomarell0/rec-server

By hugomarell0

Updated over 5 years ago

A lightweight httpserver that will always send the same answer. Not production ready

Image
0

10K+

hugomarell0/rec-server repository overview

github: https://github.com/hugo-marello/rec-server

rec-server

A lightweight http server that will always send the same answer. You can use it to debug, test or redirect. Not production ready.

Configure your message

You can configure your message by changing environment variables that are going to be read at execution time.

NameDefaultDescription
REC_PORT8000Server listening port
REC_HTTP_CODE200Http response code to be returned
REC_HTTP_STATUSOKThe http response message status, if not set default messages for the selected REC_HTTP_CODE will be used
REC_HTTP_VERSIONBased on http requestThe http version used in the message, if not set the request will dictate the version
REC_HTTP_HEADERSContent-Length=0The http headers to be sent on the response, headers must be separated by ';' and header name and value must also be separated with '='. Example: 'Header1=Value1;Header2=Value2;Header3=Value3'
REC_HTTP_PAYLOADnoneThe Http body to be sent in the response, no body is sent by default. The header 'Content-Length' is not automatically set.

Tag summary

Content type

Image

Digest

Size

38.3 MB

Last updated

over 5 years ago

docker pull hugomarell0/rec-server