├── README.md ├── app ├── events.jsx ├── index.jsx ├── headers.jsx ├── request_headers.jsx ├── response.jsx └── request.jsx ├── readfile.js ├── .babelrc ├── notes.md ├── webpack.config.js ├── index.html ├── .gitignore ├── LICENSE ├── package.json ├── main.js ├── css └── app.css └── LICENSE.md /README.md: -------------------------------------------------------------------------------- 1 | # http-wizard 2 | An app for making HTTP requests 3 | -------------------------------------------------------------------------------- /app/events.jsx: -------------------------------------------------------------------------------- 1 | import {EventEmitter} from 'events'; 2 | const Events = new EventEmitter(); 3 | export default Events; 4 | -------------------------------------------------------------------------------- /readfile.js: -------------------------------------------------------------------------------- 1 | const fs = require('fs'); 2 | 3 | module.exports = (cb) => { 4 | fs.readFile('./main.js', { encoding: 'utf8' }, cb); 5 | }; 6 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": [ 3 | "babel-plugin-transform-class-properties", 4 | "transform-react-jsx" 5 | ], 6 | "presets": ["es2015"] 7 | } 8 | -------------------------------------------------------------------------------- /notes.md: -------------------------------------------------------------------------------- 1 | install 'request': 2 | 3 | npm install --save request 4 | 5 | 6 | Tips: 7 | 8 | 9 | 1. Don't make requests in the renderer process, use ipc main instead (https://github.com/atom/electron/blob/master/docs/api/ipc-main.md) 10 | 11 | -------------------------------------------------------------------------------- /app/index.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | import ReactDOM from 'react-dom'; 5 | import Request from './request'; 6 | import Response from './response'; 7 | 8 | class App extends React.Component { 9 | render() { 10 | return ( 11 |
12 | 13 | 14 |
15 | ); 16 | } 17 | } 18 | 19 | ReactDOM.render(, document.getElementById('app')); 20 | -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- 1 | const webpack = require('webpack'); 2 | module.exports = { 3 | resolve: { 4 | extensions: ['', '.js', '.jsx'] 5 | }, 6 | entry: [ 7 | './app/index.jsx' 8 | ], 9 | output: { 10 | path: __dirname + '/js', 11 | filename: 'app.js' 12 | }, 13 | module: { 14 | loaders: [ 15 | { test: /\.jsx?$/, loaders: ['babel-loader'] } 16 | ] 17 | }, 18 | plugins: [ 19 | new webpack.NoErrorsPlugin() 20 | ] 21 | }; 22 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HTTP Master 6 | 7 | 8 | 9 | 10 |
11 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/headers.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | 5 | class Headers extends React.Component { 6 | render() { 7 | const headers = this.props.headers || {}; 8 | const headerRows = Object.keys(headers).map((key, i) => { 9 | return ( 10 | 11 | {key} 12 | {headers[key]} 13 | 14 | ); 15 | }); 16 | 17 | return ( 18 | 19 | {headerRows} 20 | 21 | ); 22 | } 23 | } 24 | 25 | export default Headers; 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # node-waf configuration 20 | .lock-wscript 21 | 22 | # Compiled binary addons (http://nodejs.org/api/addons.html) 23 | build/Release 24 | 25 | # Dependency directory 26 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 27 | node_modules 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Alex Young 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "http-wizard", 3 | "version": "1.0.0", 4 | "description": "A less minimal Electron application", 5 | "main": "main.js", 6 | "scripts": { 7 | "start": "electron main.js", 8 | "build": "node_modules/.bin/webpack --progress --colors" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "git+https://github.com/atom/electron-quick-start.git" 13 | }, 14 | "keywords": [ 15 | "Electron", 16 | "quick", 17 | "start", 18 | "tutorial" 19 | ], 20 | "author": "GitHub", 21 | "license": "CC0-1.0", 22 | "bugs": { 23 | "url": "https://github.com/atom/electron-quick-start/issues" 24 | }, 25 | "homepage": "https://github.com/atom/electron-quick-start#readme", 26 | "devDependencies": { 27 | "babel": "^6.3.13", 28 | "babel-core": "^6.3.17", 29 | "babel-loader": "^6.2.0", 30 | "babel-plugin-transform-class-properties": "^6.3.13", 31 | "babel-plugin-transform-react-jsx": "^6.3.13", 32 | "babel-preset-es2015": "^6.3.13", 33 | "electron-prebuilt": "^0.35.0", 34 | "highlight.js": "^8.9.1", 35 | "react-dom": "^0.14.3", 36 | "react-highlight": "^0.6.1", 37 | "webpack": "^1.12.9" 38 | }, 39 | "dependencies": { 40 | "escape-html": "^1.0.3", 41 | "react": "^0.14.3", 42 | "request": "^2.67.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const electron = require('electron'); 3 | const app = electron.app; // Module to control application life. 4 | const BrowserWindow = electron.BrowserWindow; // Module to create native browser window. 5 | const request = require('request'); 6 | 7 | // Report crashes to our server. 8 | electron.crashReporter.start(); 9 | 10 | // Keep a global reference of the window object, if you don't, the window will 11 | // be closed automatically when the JavaScript object is garbage collected. 12 | let mainWindow; 13 | 14 | // Quit when all windows are closed. 15 | app.on('window-all-closed', () => { 16 | // On OS X it is common for applications and their menu bar 17 | // to stay active until the user quits explicitly with Cmd + Q 18 | if (process.platform != 'darwin') { 19 | app.quit(); 20 | } 21 | }); 22 | 23 | // This method will be called when Electron has finished 24 | // initialization and is ready to create browser windows. 25 | app.on('ready', () => { 26 | // Create the browser window. 27 | mainWindow = new BrowserWindow({ width: 1024, height: 600 }); 28 | 29 | // and load the index.html of the app. 30 | mainWindow.loadURL(`file://${__dirname}/index.html`); 31 | 32 | // Open the DevTools. 33 | mainWindow.webContents.openDevTools(); 34 | 35 | // Emitted when the window is closed. 36 | mainWindow.on('closed', () => { 37 | // Dereference the window object, usually you would store windows 38 | // in an array if your app supports multi windows, this is the time 39 | // when you should delete the corresponding element. 40 | mainWindow = null; 41 | }); 42 | }); 43 | -------------------------------------------------------------------------------- /app/request_headers.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | 5 | class AddHeader extends React.Component { 6 | constructor(props) { 7 | super(props); 8 | this.state = { name: null, value: null }; 9 | } 10 | 11 | handleChange(e) { 12 | switch (e.target.name) { 13 | case 'name': 14 | this.setState({ name: e.target.value }); 15 | break; 16 | 17 | case 'value': 18 | this.setState({ value: e.target.value }); 19 | break; 20 | } 21 | } 22 | 23 | handleAdd(e) { 24 | e.preventDefault(); 25 | this.props.handleAdd(this.state); 26 | this.setState({ name: null, value: null }); 27 | } 28 | 29 | render() { 30 | const handleChange = this.handleChange.bind(this); 31 | const handleAdd = this.handleAdd.bind(this); 32 | 33 | return ( 34 | 35 | 36 | + 37 | 38 | ); 39 | } 40 | } 41 | 42 | class RequestHeaders extends React.Component { 43 | render() { 44 | const headers = this.props.headers || {}; 45 | const headerRows = Object.keys(headers).map((key, i) => { 46 | return ( 47 | 48 | 49 | × 50 | 51 | ); 52 | }); 53 | 54 | return ( 55 | 56 | {headerRows} 57 | 58 | 59 | ); 60 | } 61 | } 62 | 63 | export default RequestHeaders; 64 | -------------------------------------------------------------------------------- /app/response.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | import Events from './events'; 5 | import Headers from './headers'; 6 | import Highlight from 'react-highlight'; 7 | 8 | class Response extends React.Component { 9 | constructor(props) { 10 | super(props); 11 | this.state = { 12 | result: {}, 13 | tab: 'body' 14 | }; 15 | } 16 | 17 | componentWillUnmount() { 18 | Events.removeListener('result', this.handleResult.bind(this)); 19 | } 20 | 21 | componentDidMount() { 22 | Events.addListener('result', this.handleResult.bind(this)); 23 | } 24 | 25 | handleResult(result) { 26 | this.setState({ result: result }); 27 | } 28 | 29 | handleSelectTab(e) { 30 | const tab = e.target.dataset.tab; 31 | this.setState({ tab: tab }); 32 | } 33 | 34 | getHighlightLanguage() { 35 | const headers = this.state.result.headers; 36 | const contentType = (headers && headers['content-type']) || ''; 37 | 38 | if (contentType.match(/html/)) { 39 | return 'html'; 40 | } else if (contentType.match(/json/)) { 41 | return 'json'; 42 | } else if (contentType.match(/xml/)) { 43 | return 'xml'; 44 | } 45 | 46 | return ''; 47 | } 48 | 49 | render() { 50 | const handleSelectTab = this.handleSelectTab.bind(this); 51 | const result = this.state.result; 52 | const highlightLanguage = this.getHighlightLanguage(); 53 | const tabClasses = { 54 | body: this.state.tab === 'body' ? 'active' : null, 55 | errors: this.state.tab === 'errors' ? 'active' : null, 56 | }; 57 | 58 | return ( 59 |
60 |

Response {result.response}

61 |
62 |
63 |
64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 |
Header NameHeader Value
73 |
74 |
75 | 83 |
{result.raw}
84 |
{result.error}
85 |
86 |
87 |
88 |
89 | ); 90 | } 91 | } 92 | 93 | export default Response; 94 | -------------------------------------------------------------------------------- /app/request.jsx: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | import React from 'react'; 4 | import Events from './events'; 5 | import RequestHeaders from './request_headers'; 6 | 7 | const request = remote.require('request'); 8 | 9 | class Request extends React.Component { 10 | constructor(props) { 11 | super(props); 12 | this.state = { 13 | url: 'http://localhost:3000', 14 | method: 'GET', 15 | headers: { 16 | Accept: '*/*', 17 | 'User-Agent': 'HTTP Wizard' 18 | } 19 | }; 20 | } 21 | 22 | handleChange = (e) => { 23 | const state = {}; 24 | state[e.target.name] = e.target.value; 25 | this.setState(state); 26 | } 27 | 28 | makeRequest = () => { 29 | request(this.state, (err, res, body) => { 30 | const statusCode = res ? res.statusCode : 'No response'; 31 | const result = { 32 | response: `(${statusCode})`, 33 | raw: body ? body : '', 34 | headers: res ? res.headers : [], 35 | error: err ? JSON.stringify(err, null, 2) : '' 36 | }; 37 | 38 | Events.emit('result', result); 39 | 40 | new Notification(`HTTP response finished: ${statusCode}`) 41 | }); 42 | } 43 | 44 | handleAdd = (header) => { 45 | const headers = this.state.headers; 46 | headers[header.name] = header.value; 47 | this.setState({ headers: headers }); 48 | } 49 | 50 | handleChangeHeader = (e) => { 51 | const key = e.target.dataset.headerName; 52 | const headers = this.state.headers; 53 | headers[key] = e.target.value; 54 | this.setState({ headers: headers }); 55 | } 56 | 57 | handleRemoveHeader = (e) => { 58 | e.preventDefault(); 59 | const key = e.target.dataset.headerName; 60 | const headers = this.state.headers; 61 | delete headers[key]; 62 | this.setState({ headers: headers }); 63 | } 64 | 65 | render() { 66 | return ( 67 |
68 |

Request

69 |
70 |
71 | 72 | 77 |
78 |
79 | 80 | 86 |
87 |
88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 100 |
Header NameHeader Value
101 |
102 |
103 | Make request 104 |
105 |
106 |
107 | ); 108 | } 109 | } 110 | 111 | export default Request; 112 | -------------------------------------------------------------------------------- /css/app.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'Segoe UI'; 3 | font-weight: 300; 4 | src: local('Segoe UI Semilight'); 5 | } 6 | 7 | body, html { 8 | position: fixed; 9 | background-color: #F7F7F7; 10 | padding: 0; 11 | margin: 0; 12 | height: 100%; 13 | width: 100%; 14 | overflow: hidden; 15 | } 16 | 17 | h1, h2, input, .dg *, a, p, select, input, label { 18 | font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; 19 | font-size: 13px; 20 | } 21 | 22 | h1, h2 { 23 | font-size: 100%; 24 | font-weight: normal; 25 | } 26 | 27 | h1 { 28 | background-color: #fff; 29 | border-bottom: 1px solid #B3B3B3; 30 | margin: 0; 31 | padding: 7px 10px; 32 | font-size: 13px; 33 | } 34 | 35 | p { margin: 5px 0 } 36 | 37 | input { border: 1px solid #CCCCCC; border-radius: 3px } 38 | input:focus { border: 1px solid #3E8FD6 !important; color: #3E8FD6; outline: none } 39 | 40 | .content-container { padding: 0; width: 79%; height: 100%; table-layout: fixed; overflow: hidden; box-sizing: border-box; position: absolute; margin-bottom: -100px; right: 0; left: 30%; background-color: #fff } 41 | .content { padding: 0; width: 100%; height: 100%; } 42 | 43 | .raw { overflow: scroll; background-color: #fff; font-size: 11px; width: 100%; right: 0; margin: 0; } 44 | 45 | .results .raw { margin-top: 32px } 46 | 47 | pre { margin: 0; } 48 | 49 | #headers { width: calc(86%); height: calc(30% - 40px); padding: 5px 10px; overflow: scroll } 50 | #raw, #error { height: calc(75% - 58px); } 51 | 52 | ul.nav { clear: right; width: 100%; height: 30px; list-style-type: none; margin: 0; padding: 0; border-top: 1px solid #B2B2B2; border-bottom: 1px solid #B2B2B2; background-color: #F7F7F7; position: absolute; } 53 | ul.nav li { float: left; width: 50px; margin-top: 6px; border-right: 1px solid #DEDEDE; text-align: center } 54 | ul.nav li:last-child { border-right: none } 55 | ul.nav li a { text-decoration: none; color: #000; font-size: 12px; padding: 2px 4px; border-radius: 3px } 56 | ul.nav li a:hover { background-color: #EFEFEF } 57 | ul.nav li.active a { color: #4190DD } 58 | 59 | .container { display: table; width: 100%; height: 100%; box-sizing: border-box } 60 | .request { width: 30%; float: left; border-right: 1px solid #999999; display: table-cell; box-sizing: border-box; height: 100%; overflow: auto; } 61 | .request h1 { background-color: #F6F6F6 } 62 | 63 | .response { width: 70%; float: left; padding: 0; box-sizing: border-box; height: 100%; background-color: #fff; } 64 | .request-options { padding: 0 10px; margin-top: 10px } 65 | 66 | .request-options .form-row { display: table; width: 100%; margin-top: 4px } 67 | .request-options .form-row label { display: table-cell; width: 30%; text-align: right; float: left; margin: 0 10px 0 0; font-size: 11px; line-height: 20px } 68 | .request-options .form-row .name label { float: right; width: 100%; text-align: right; margin-right: 0 } 69 | .request-options .form-row input { display: table-cell; text-align: left; margin: 0; border: 1px solid #C1C1C1; padding: 2px 4px; font-size: 11px } 70 | 71 | .headers { width: 100%; font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 13px; border-collapse: collapse } 72 | .headers .name { width: 30%; text-align: left; padding: 4px 0 } 73 | .headers th { color: #9a9a9a; font-weight: normal; border-bottom: 1px solid #DBDBDB; font-size: 11px; padding-left: 10px } 74 | .headers .value { width: 70%; text-align: left; padding: 4px 0; } 75 | .headers .value { 76 | overflow-wrap: break-word; 77 | word-wrap: break-word; 78 | word-break: break-word; 79 | -webkit-hyphens: auto; 80 | hyphens: auto; 81 | } 82 | .request .header-body td { border-bottom: 1px solid #F8F8F8 } 83 | 84 | .request .headers { margin-top: 10px; } 85 | .request .headers input { width: 70%; } 86 | .request .headers th.name { text-align: right } 87 | .request .headers .name input { float: right } 88 | .request .headers .value { padding-left: 10px } 89 | .request .submit { border-top: 1px solid #DBDBDB; margin: 15px 0; padding-top: 5px } 90 | 91 | .btn { color: #000; background-color: #fff; padding: 2px 6px; border: 1px solid #CDCDCD; border-radius: 3px; text-decoration: none; float: right; margin-top: 4px; } 92 | .btn:active { background-color: #f0f0f0 } 93 | 94 | .round-btn { text-decoration: none; color: #3E8FD6; } 95 | 96 | .results { background-color: #F7F7F7; height: 100%; overflow: scroll; } 97 | -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | CC0 1.0 Universal 2 | ================== 3 | 4 | Statement of Purpose 5 | --------------------- 6 | 7 | The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work"). 8 | 9 | Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the ideal of a free culture and the further production of creative, cultural and scientific works, or to gain reputation or greater distribution for their Work in part through the use and efforts of others. 10 | 11 | For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights. 12 | 13 | 1. Copyright and Related Rights. 14 | -------------------------------- 15 | A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following: 16 | 17 | i. the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work; 18 | ii. moral rights retained by the original author(s) and/or performer(s); 19 | iii. publicity and privacy rights pertaining to a person's image or likeness depicted in a Work; 20 | iv. rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below; 21 | v. rights protecting the extraction, dissemination, use and reuse of data in a Work; 22 | vi. database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and 23 | vii. other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof. 24 | 25 | 2. Waiver. 26 | ----------- 27 | To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each member of the public at large and to the detriment of Affirmer's heirs and successors, fully intending that such Waiver shall not be subject to revocation, rescission, cancellation, termination, or any other legal or equitable action to disrupt the quiet enjoyment of the Work by the public as contemplated by Affirmer's express Statement of Purpose. 28 | 29 | 3. Public License Fallback. 30 | ---------------------------- 31 | Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's Copyright and Related Rights in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable law or treaty (including future time extensions), (iii) in any current or future medium and for any number of copies, and (iv) for any purpose whatsoever, including without limitation commercial, advertising or promotional purposes (the "License"). The License shall be deemed effective as of the date CC0 was applied by Affirmer to the Work. Should any part of the License for any reason be judged legally invalid or ineffective under applicable law, such partial invalidity or ineffectiveness shall not invalidate the remainder of the License, and in such case Affirmer hereby affirms that he or she will not (i) exercise any of his or her remaining Copyright and Related Rights in the Work or (ii) assert any associated claims and causes of action with respect to the Work, in either case contrary to Affirmer's express Statement of Purpose. 32 | 33 | 4. Limitations and Disclaimers. 34 | -------------------------------- 35 | 36 | a. No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document. 37 | b. Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law. 38 | c. Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work. 39 | d. Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work. 40 | --------------------------------------------------------------------------------