Git Product home page Git Product logo

swiftlocalhost's Issues

Body outgoing request

Good day! Please tell me, is it possible to check the body of an outgoing application request? If not difficult, then with an example.

open ssl build error on M1 Mac

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.

Screen Shot 2022-03-07 at 5 08 35 PM

Support routing depending on request params like body and headers

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!

Override mock response for path

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.

Support For Swift Package Manager

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.

Identical requests in one test

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.