Git Product home page Git Product logo

faker_web's People

Contributors

thiagofigueiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

bmwant

faker_web's Issues

Add module names to server_token

Apache versions can contain a list of enabled modules and their versions. E.g.:

Apache/2.0.55 (Debian) PHP/5.1.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8b 

Fake HTTP headers

Would be nice to be able to generate fake HTTP headers. Code structure will probably be similar to content_type.

fake urls

Hello there!
Is there any way to generate fake URL?
Thanks in advance!

Add request() method

This should return the most common information present in a HTTP request in a consistent manner. E.g.:

fake.request()
{
    scheme: 'http',
    version: '1.1',
    domain: 'www.example.com',
    port: 80,
    file_extension: 'jpg',
    content_type: 'image/jpeg',
    path: '/images/file.jpg',
    url: 'http://www.example.com/images/file.jpg',
}

Variations:

  • scheme: http, https, spdy,
  • version: 1.0, 1.1, 2.0
  • domain: domain_name
  • port: common ports associated with scheme
  • file_extension: choose from mime_type_popular
  • content_type: based on file_extension
  • path: uri_path with file_name and file_extension matching content_type

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.