GithubHelp home page GithubHelp logo

gyhttpmock's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gyhttpmock's Issues

pod里面报找不到头文件

首先引入头文件#import "GYHttpMock.h"

然后我调用 [[GYHttpMock sharedInstance]startMock];

import "GYMockRequest.h" file not found

就报找不到头文件了,大神求解答一下

小弟,祈求大神出一个Demo吧,根本不知道怎么集成你这个框架,无比郁闷。。。。。。

没有办法拦截AFNetWorking的请求 需要额外的做操作吗

manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html", nil];
//get请求
// SKIODriver * mockDriver=[[SKIODriver alloc]init];
// [mockDriver testUrl:urlString];
mockRequest(@"GET", @"https://www.baidu.com")
.withBody(@"ceshi")
.andReturn(200).withBody(@"{"key":"value"}");

[manager GET:urlString parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
    //数据请求的进度
}

可以作为iOS的调试工具么

看到您是**人...就用中文了
最近在尝试修改iOS app的发包
需要有以下的功能
接收到packet的response的一部分替换发出packet的sent的一部分
实时修改接收包
在mac上可以使用代理实现
然而在ios上有办法直接实现么(越狱环境)

找不到JSON文件

使用cocopods配置之后,如果json文件在主app内,无法找到对应文件。

求解惑

based on Nocilla 是什么意思? 我看这个库是可以单独直接使用的?

示例crash了

我按照示例:
mockRequest(@"GET", @"(.?)google.com(.?)".regex).
withBody(@"{"name":"abc"}".regex);

一跑起来就crash:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid regex pattern: {"name":"abc"}
Error: Error Domain=NSCocoaErrorDomain Code=2048 "The value “{"name":"abc"}” is invalid." UserInfo={NSInvalidValue={"name":"abc"}}'

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.