Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Feature: Add support for sending files instead of file content #11

Closed
mischah opened this issue Dec 1, 2017 · 0 comments
Closed

Feature: Add support for sending files instead of file content #11

mischah opened this issue Dec 1, 2017 · 0 comments

Comments

@mischah
Copy link
Member

mischah commented Dec 1, 2017

Kinda related to #7

@mischah mischah changed the title Feat: Add support for binary data responses Feature: Add support for sending files instead of file content Dec 4, 2017
mischah added a commit that referenced this issue Dec 4, 2017
The new option `sendFile` lets you sends the file as response instead of returning the file content.

Closes #11
mischah added a commit to micromata/generator-http-fake-backend that referenced this issue Feb 18, 2018
> # http-fake-backend 4.0.2
> 
> ## Bug Fixes
> 
> * update minimum node version in package.json
>
>*Change `engines.node` to `>=6.0.0` to reflect the minimum node version which is needed since http-fake-backend 4.0.0.*
>
> # http-fake-backend 4.0.1
>
> ## Bug Fixes
>
> * encoding of binary files send via endpoints
> 
> # http-fake-backend 4.0.0
> 
> ## Bug Fixes
> 
> * **dependencies:** Apply changes of boom update
> * **dependencies:** Update dependencies
> 
> ## Code Refactoring
> 
> * Refactor existing codebase
> 
> ## Documentation
> 
> * Update required minimum Node version in readme
> 
> ## Features
> 
> * Add support for other response content-types, closes [#7](micromata/http-fake-backend#7)
> * Add support for sending files as response, closes [#11](micromata/http-fake-backend#11)
>
> ## BREAKING CHANGES
>
> * The transitive dependency punycode@2.1.0 needs Node version ">=6".
> * The setup.js is divided to multiple files.
Therefore you need to change the import of the setup in your endpoint files
like the following:
> 
> ```javascript
> // before
> const SetupEndpoint = require('./setup/setup.js');
>
> // now
> const SetupEndpoint = require('./setup/index.js');
> 
> // or:
> const SetupEndpoint = require('./setup/');
> ```
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant