depoon / swiftlocalhost Goto Github PK
View Code? Open in Web Editor NEWSwift Localhost server for all your testing needs
License: MIT License
Swift Localhost server for all your testing needs
License: MIT License
Good day! Please tell me, is it possible to check the body of an outgoing application request? If not difficult, then with an example.
I have been using SwiftLocalHost for past few months on an intel Mac and it worked fine. My company switched to M1 Macs and I am seeing a build issue on M1 when building the project with Swiftlocalhost. Below is the error I am seeing and it looks like its originating from Criollo pod https://github.com/thecatalinstan/Criollo
Is this a known issue and will there be support provided to use SwiftLocalHost on M1 Macs? Would be of huge help if this issue can be resolved.
Greetings,
It would be really nice to have a possibility to distinguish different routes not only by the request url, but also by other requests params - e.g. body or else. That would allow to set routes for same url but with different request params. Could we get something like that sometimes in a while? Thanks!
Hi,
I know this has been discussed before. We have the case where we need to override the mock response at runtime. The Criollo server stores the configured routes in an array. Whenever a request comes in it would return the first match.
I was able to adjust the LocalhostServer.swift
to make it work. Please let me know if you would like me to open a PR. It's probably not the most clean solution but works for our needs and doesn't break anything else afaik.
It would be really nice if you could add support for the Swift Package Manager. I'm not very familiar with Cocoa Pods and I find SPM to be much simpler.
How to mock the same path but data in request's body are different ?
Good day. In my test, I use two identical requests with the same path, but with a different body. And the application always uses the first request, and the second is ignored. Is it possible to use requests in the order of their initialization, or in some other way?
Is it possible to have support for the HTTP Methods like PATCH?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.